DannyV3000

die to level 40 kensei

Jan 11th, 2020
891
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ClassSubList["monk-way of the kensei-xgte"].features["subclassfeature3"] = {//epic feature
  2.     name : "Path of the Kensei",
  3.     source : ["X", 34],
  4.     minlevel : 3,
  5.     description : desc([
  6.         "I gain proficiency with either calligrapher's supplies or painter's supplies",
  7.         "Some weapons, that don't have the heavy or special property, are kensei weapons for me",
  8.         "At least one ranged and one melee weapon, more at higher levels (longbow does qualify)",
  9.         "With these: proficient, count as a monk weapons, special bonuses depending on type held:",
  10.         "\u2022 Melee: if I do unarmed strike during an Attack action, +2 AC until my next turn starts",
  11.         "\u2022 Ranged: as a bonus action, ranged weapon attacks deal +1d4 damage in current turn"
  12.     ]),
  13.     action: ["bonus action", " (with ranged)"],
  14.     additional : levels.map( function(n) { return n < 3 ? "" : (n < 6 ? 2 : n < 11 ? 3 : n < 17 ? 4 : 5) + " kensei weapons"; }),
  15.     toolProfs : ["calligrapher's or painter's supplies"],
  16.     extraname : "Kensei Weapon",
  17.     extrachoices : [], // add these dynamically, see below
  18.     extraTimes : levels.map( function(n) { return n < 3 ? 0 : n < 6 ? 2 : n < 11 ? 3 : n < 17 ? 4 : 5; }),
  19.     calcChanges : {
  20.         atkAdd : [
  21.             function (fields, v) {
  22.                 if (!classes.known.monk || classes.known.monk.level < 2 || v.isSpell) return;
  23.                 var theKenseiWeapons = GetFeatureChoice("class", "monk", "subclassfeature3", true);
  24.                 if (theKenseiWeapons.indexOf(v.baseWeaponName) != -1 || ((/kensei/i).test(v.WeaponText) && (!(/heavy|special/i).test(fields.Description) || v.baseWeaponName === 'longbow'))) {
  25.                     var aMonkDie = function (n) { return n < 5 ? 4 : n < 11 ? 6 : n < 17 ? 8 : n < 23 ? 10 : n < 29 ? 12  : n < 35 ? 16 : 20; }(classes.known.monk.level);
  26.                     try {
  27.                         var curDie = eval(fields.Damage_Die.replace('d', '*'));
  28.                     } catch (e) {
  29.                         var curDie = 'x';
  30.                     };
  31.                     if (isNaN(curDie) || curDie < aMonkDie) {
  32.                         fields.Damage_Die = '1d' + aMonkDie;
  33.                     };
  34.                     if (v.theWea.ability === 1) {
  35.                         fields.Mod = v.StrDex;
  36.                     };
  37.                     if (v.isRangedWeapon) {
  38.                         fields.Description += (fields.Description ? '; ' : '') + 'As bonus action with Attack action, +1d4 damage';
  39.                     };
  40.                     fields.Proficiency = true;
  41.                 };
  42.             },
  43.             "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."
  44.         ]
  45.     }
  46. };
Advertisement
Add Comment
Please, Sign In to add comment