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