Advertisement
Domannaa

Whistler 3rd level

Mar 6th, 2020
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var iFileName = "Bard- College of the Whistlers[by Domannaa].js";
  2. RequiredSheetVersion(12.999);
  3.  
  4. AddSubClass("bard", "college of the whistlers", {
  5.     regExpSearch : /^(?=.*\bwhistler?\b).*$/i,
  6.     subname : "College of the Whistlers",
  7.     fullname : "Whistler",
  8.     source : ["HB", 0],
  9.     attacks : [1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2],
  10.     features : {
  11.         "subclassfeature3" : {
  12.             name : "Sword of the Little Folk",
  13.             source : ["HB", 0],
  14.             minlevel : 3,
  15.             description : desc([
  16.                     "When I wield a simple weapon, I can use my Bardic Inspiration die",
  17.                     "This replaces the damage dice of the weapon"
  18.             ]),
  19.             calcChanges : {
  20.                 atkAdd : [
  21.                     function (fields, v) {
  22.                         if (classes.known.bard && classes.known.bard.level && (/simple/i).test(v.theWea.type)) {
  23.                                 var aBardDie = function (n) { return n < 5 ? 6 : n < 10 ? 8 : n < 15 ? 10 : 12; }(classes.known.bard.level);
  24.                                 try {
  25.                                         var curDie = eval_ish(fields.Damage_Die.replace('d', '*'));
  26.                                 } catch (e) {
  27.                                         var curDie = 'x';
  28.                                 };
  29.                                 if (isNaN(curDie) || curDie < aBardDie) {
  30.                                         fields.Damage_Die = '1d' + aBardDie;
  31.                                 };
  32.                         };
  33.                     },
  34.                     "When a Whistler wields a simple weapon, they can choose to use their bardic inspiration die instead of the weapon's damage dice",
  35.                 ],
  36.             },
  37.         },
  38.         "subclassfeature3.2" : {
  39.             name : "Encouraging Presence",
  40.             source : ["HB", 0],
  41.             minlevel : 3,
  42.       action : ["reaction", ""],
  43.             description : desc([
  44.                 "Whenever a creature rolls an inspiration die gained from me",
  45.                 "they also regain an equal amount of hit points to the result",
  46.                 "Additionally, I gain a new method of using my bardic inspiration",
  47.                 "As a reaction when a creature with 30ft rolls an attack, check or save",
  48.                 "I can immediately grant them a Bardic Inspiration die",
  49.                 "The creature must use the die on the roll that triggered this reaction",
  50.             ]),
  51.         },
  52.         "subclassfeature14" : {
  53.             name : "Hidden Depths",
  54.             source : ["HB", 0],
  55.             minlevel : 14,
  56.             description : desc([
  57.                 "When I am reduced to 0hp, I can spend an inspiration die",
  58.                 "When I do so, I regain HP equal to the roll + my Charisma modifier",
  59.             ]),
  60.         },
  61.     },
  62. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement