Domannaa

Keith Baker's Forge Adept

Sep 21st, 2020 (edited)
1,192
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var iFileName = "Artificer- Forge Adept [by Keith Baker].js";
  2. RequiredSheetVersion(12.999);
  3.  
  4. SourceList["EE:KB"] = {
  5.     name : "Exploring Eberron - Keith Baker",
  6.     abbreviation : "EE:KB",
  7.     date : "2020/30/07"
  8. };
  9.  
  10. AddSubClass("artificer", "forge adept", {
  11.     regExpSearch : /^(?=.*forge)(?=.*adept).*$/i,
  12.     subname : "Forge Adept",
  13.     fullname : "Forge Adept",
  14.     source : ["EE:KB", 0],
  15.     attacks : [1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2],
  16.     features : {
  17.         "subclassfeature3" : {
  18.             name : "Tool Proficiency",
  19.             source : ["EE:KB", 0],
  20.             minlevel : 3,
  21.             description : desc([
  22.                 "I gain proficiency with Smith's Tools",
  23.                 "If I am already proficient, I choose another Artisan's Tool",
  24.             ]),
  25.             toolProfs : ["Smith's tools"],
  26.             eval : function () {
  27.                 AddToInv("gear", "l", "Smith's tools", "", 8);
  28.             },
  29.             spellcastingExtra : ["armor of agathys", "shield of faith", "spiritual weapon", "warding bond", "remove curse", "beacon of hope", "death ward", "fire shield", "banishing smite", "wall of force"]
  30.         },
  31.         "subclassfeature3.1" : {
  32.             name : "Battle Ready",
  33.             source : ["EE:KB", 0],
  34.             minlevel : 3,
  35.             description : desc([
  36.                 "I gain proficiency with martial weapons",
  37.                 "I can use my Intelligence modifier instead of Strength or Dexterity for magic weapons",
  38.             ]),
  39.             weaponProfs : [false, true],
  40.             calcChanges : {
  41.                 atkAdd : [
  42.                     function (fields, v) {
  43.                         if (!v.isSpell && (v.theWea.isMagicWeapon || v.thisWeapon[1]) && fields.Mod > 0 && fields.Mod < 3 && What("Int") > What(fields.Mod == 1 ? "Str" : "Dex")) {
  44.                             fields.Mod = 4;
  45.                         }
  46.                     },
  47.                     'I can use my Intelligence modifier instead of Strength or Dexterity for the attack and damage rolls of magic weapons.'
  48.                 ]
  49.             },
  50.         },
  51.         "subclassfeature3.2" : {
  52.             name : "Ghall'Shaarat",
  53.             source : ["EE:KB", 0],
  54.             minlevel : 3,
  55.             description : desc([
  56.                 "When I end a long rest, I can touch a simple or martial weapon and make it my Ghall'Shaarat",
  57.                 "This works like infusing an item, but does not count towards my maximum infused items",
  58.                 "Once infused, My Ghall'Shaarat becomes a +1 weapon unless it already has a higher bonus",
  59.                 "This bonus increases to +2 at 8th level and +3 at 13th level.",
  60.                 "If It has the thrown property, it returns to my hand after making a ranged attack",
  61.                 "These effects last until it is destroyed or I imbue a new weapon with this power",
  62.             ]),
  63.         },
  64.         "subclassfeature9" : {
  65.             name : "Runes of War",
  66.             source : ["EE:KB", 0],
  67.             minlevel : 9,
  68.             description : desc([
  69.                 "As an action, I can activate an 30ft Aura that enhances the weapons of my allies",
  70.                 "When I activate this aura, I choose acid, cold, fire, lightning or thunder",
  71.                 "Creatures I choose within the aura deal an extra 1d4 damage of that type with weapons",
  72.                 "The aura lasts for 1 minute or until my concentration ends (as if I cast a spell)",
  73.             ]),
  74.             action : ["action", ""],
  75.             usages : "Intelligence modifier per ",
  76.             usagescalc : "event.value = Math.max(1, What('Int Mod'));",
  77.             recovery : "long rest",
  78.         },
  79.         "subclassfeature15" : {
  80.             name : "Perfect Weapon",
  81.             source : ["EE:KB", 0],
  82.             minlevel : 15,
  83.             description : desc([
  84.                 "The first time I attack with my Ghall'Shaarat during my turn, I can add to my AC",
  85.                 "I transfer some or all of it's magic bonus to my AC until the start of my next turn",
  86.                 "Additionally, I can add one of the following effects to it after a long rest",
  87.                 "- I gain resistance to Psychic damage and immunity to being Charmed and Frightened",
  88.                 "- My Ghall'Shaarat deals an additional 1d6 acid, cold, fire, lightning or thunder"
  89.             ])
  90.         }
  91.     }
  92. });
  93.  
  94.  
RAW Paste Data