<?xml version="1.0" encoding="utf-8" ?>
<elements>
    <info>
        <name>Equip Mage</name>
        <description>The homebrewed Equip Mage class. </description>
        <author url="NA">Custom</author>
        <update version="0.01">
            <file name="class-equip_mage" url="NA" />
        </update>
    </info>

    <element name="Equip Mage" type="Class" source="Custom" id="ID_CUSTOM_CLASS_EQUIPMAGE">
        <description>
            <p>Equip Mages are as varied as the stars, using their ability to access their own interdimensional space to store and equip weapons and armor they have amassed.</p>
            <h3>CLASS FEATURES</h3>
            <p>As an Equip Mage, you have the following class features.</p>
            <h5>HIT POINTS</h5>
            <ul class="unstyled">
                <li><strong>Hit Dice:</strong> 1d10 per equip mage level</li>
                <li><strong>Hit Points at 1st Level:</strong> 10 + your Constitution modifier</li>
                <li><strong>Hit Points at Higher Levels:</strong> 1d10 (or 6) + your Constitution modifier per equip mage level after 1st</li>
            </ul>
            <h5>PROFICIENCIES</h5>
            <ul class="unstyled mb">
                <li><strong>Armor:</strong> All armor, shields</li>
                <li><strong>Weapons:</strong> Simple weapons, martial weapons</li>
                <li><strong>Tools:</strong> None</li>
            </ul>
            <ul class="unstyled">
                <li><strong>Saving Throws:</strong> Strength, Wisdom</li>
                <li><strong>Skills:</strong> Choose two skills from Acrobatics, Animal Handling, Athletics, History, Insight, Intimidation, Perception, and Survival</li>
                <li><strong>Skills:</strong> Choose one from Deception, Investigation, Performance, Persuasion, Sleight of Hand, and Stealth</li>
            </ul>
            <h5>EQUIPMENT</h5>
			<p>You start with the following equipment, in addition to the equipment granted by your background:</p>
			<ul>
                <li><i>(a)</i> chain mail or <i>(b)</i> leather armor, longbow, and 20 arrows</li>
                <li><i>(a)</i> a simple or martial weapon and a shield or <i>(b)</i> two simple or martial weapons</li>
                <li><i>(a)</i> a light crossbow and 20 bolts or <i>(b)</i> two simple or martial weapons</li>
                <li><i>(a)</i> a dungeoneer’s pack or <i>(b)</i> an explorer’s pack</li>
			</ul>
            <h5 class="caption">THE EQUIP MAGE</h5>
            <table class="class-features">
				<thead>
					<tr><td class="col-5">Level</td><td class="col-25">Equip Points</td><td class="col-40 left">Features</td></tr>
				</thead>
                <tr><td> 1st</td><td>0</td><td class="left">Fighting Style, Ritual Bonding, Equipment Summoning (1)</td></tr>
                <tr><td> 2nd</td><td>2</td><td class="left">Improved Summoning</td></tr>
                <tr><td> 3rd</td><td>3</td><td class="left"></td></tr>
                <tr><td> 4th</td><td>4+Wisdom Modifier</td><td class="left">Ability Score Improvement</td></tr>
                <tr><td> 5th</td><td>5+Wisdom Modifier</td><td class="left">Uncanny Dodge, Extra Attack</td></tr>
                <tr><td> 6th</td><td>6+Wisdom Modifier</td><td class="left">Ability Score Improvement, Superior Equiping</td></tr>
                <tr><td> 7th</td><td>7+Wisdom Modifier</td><td class="left"></td></tr>                 
                <tr><td> 8th</td><td>8+Wisdom Modifier</td><td class="left">Ability Score Improvement</td></tr>
                <tr><td> 9th</td><td>9+Wisdom Modifier</td><td class="left">Telekinetic Control</td></tr>
                <tr><td> 10th</td><td>10+Wisdom Modifier</td><td class="left"></td></tr>
                <tr><td> 11th</td><td>11+2*Wisdom Modifier</td><td class="left">Extra Attack (2)</td></tr>
                <tr><td> 12th</td><td>12+2*Wisdom Modifier</td><td class="left">Ability Score Improvement</td></tr>
                <tr><td> 13th</td><td>13+2*Wisdom Modifier</td><td class="left"></td></tr>
				<tr><td> 14th</td><td>14+2*Wisdom Modifier</td><td class="left">Ability Score Improvement</td></tr>
				<tr><td> 15th</td><td>15+2*Wisdom Modifier</td><td class="left"></td></tr>
				<tr><td> 16th</td><td>16+2*Wisdom Modifier</td><td class="left">Ability Score Improvement</td></tr>
				<tr><td> 17th</td><td>17+3*Wisdom Modifier</td><td class="left"></td></tr>
				<tr><td> 18th</td><td>18+3*Wisdom Modifier</td><td class="left"></td></tr>
				<tr><td> 19th</td><td>19+3*Wisdom Modifier</td><td class="left">Ability Score Improvement</td></tr>
				<tr><td> 20th</td><td>20+4*Wisdom Modifier</td><td class="left">Extra Attack (3)</td></tr>
            </table>
            <div element="ID_WOTC_PHB_CLASS_FEATURE_FIGHTINGSTYLE" />
            <div element="ID_CUSTOM_CLASS_FEATURE_RITUALBINDING" />
            <div element="ID_CUSTOM_CLASS_FEATURE_EQUIPMENTSUMMONING" />
            <div element="ID_CUSTOM_CLASS_FEATURE_UNCANNYDODGE" />
            <div element="ID_WOTC_PHB_CLASS_FEATURE_EXTRAATTACK" />
            <div element="ID_CUSTOM_CLASS_FEATURE_TELEKINETICCONTROL" />
        </description>
        <sheet display="false">
			<description>A master of martial combat, skilled with a variety of weapons and armor.</description>
		</sheet>
		<setters>
			<set name="short">A master of martial combat who summons and equips a variety of weapons and armor.</set>
			<set name="hd">d10</set>
		</setters>
        <rules>
			<grant type="Proficiency" id="ID_PROFICIENCY_ARMOR_PROFICIENCY_LIGHT_ARMOR" requirements="!ID_CUSTOM_MULTICLASS_EQUIPMAGE"/>
			<grant type="Proficiency" id="ID_PROFICIENCY_ARMOR_PROFICIENCY_MEDIUM_ARMOR" requirements="!ID_CUSTOM_MULTICLASS_EQUIPMAGE"/>
			<grant type="Proficiency" id="ID_PROFICIENCY_ARMOR_PROFICIENCY_HEAVY_ARMOR" requirements="!ID_CUSTOM_MULTICLASS_EQUIPMAGE"/>
			<grant type="Proficiency" id="ID_PROFICIENCY_ARMOR_PROFICIENCY_SHIELDS" requirements="!ID_CUSTOM_MULTICLASS_EQUIPMAGE"/>
			<grant type="Proficiency" id="ID_PROFICIENCY_WEAPON_PROFICIENCY_SIMPLE_WEAPONS" requirements="!ID_CUSTOM_MULTICLASS_EQUIPMAGE"/>
			<grant type="Proficiency" id="ID_PROFICIENCY_WEAPON_PROFICIENCY_MARTIAL_WEAPONS" requirements="!ID_CUSTOM_MULTICLASS_EQUIPMAGE"/>
			<grant type="Proficiency" id="ID_PROFICIENCY_SAVINGTHROW_STRENGTH" requirements="!ID_CUSTOM_MULTICLASS_EQUIPMAGE"/>
			<grant type="Proficiency" id="ID_PROFICIENCY_SAVINGTHROW_WISDOM" requirements="!ID_CUSTOM_MULTICLASS_EQUIPMAGE"/>
            <select type="Proficiency" name="Skill Proficiency (Equip Mage)" supports="Skill,Fighter" number="2" requirements="!ID_CUSTOM_MULTICLASS_EQUIPMAGE"/>
            <select type="Proficiency" name="Skill Proficiency (Equip Mage)" supports="Skill,Rogue" number="1" requirements="!ID_CUSTOM_MULTICLASS_EQUIPMAGE" />
            <grant type="Class Feature" id="ID_WOTC_PHB_CLASS_FEATURE_FIGHTINGSTYLE" level="1"/>
            <grant type="Class Feature" id="ID_CUSTOM_CLASS_FEATURE_RITUALBINDING" level="1"/>
            <grant type="Class Feature" id="ID_CUSTOM_CLASS_FEATURE_EQUIPMENTSUMMONING" level="1"/>
            <grant type="Class Feature" id="ID_CUSTOM_CLASS_FEATURE_LVLTWOEQUIPING" level="2"/>
            <grant type="Class Feature"  
            id="ID_CUSTOM_CLASS_FEATURE_ABILITYSCOREIMPROVEMENT_EQUIPMAGE" level="4"/>
            <grant type="Class Feature" id="ID_CUSTOM_CLASS_FEATURE_UNCANNYDODGE" level="5"/>
            <grant type="Class Feature" id="ID_WOTC_PHB_CLASS_FEATURE_EXTRAATTACK" level="5"/>
            <grant type="Class Feature" id="ID_CUSTOM_CLASS_FEATURE_IMPROVEDEQUIPING" level="6"/>
            <grant type="Class Feature" id="ID_CUSTOM_CLASS_FEATURE_TELEKINETICCONTROL" level="9"/>
        </rules>
        <multiclass id="ID_CUSTOM_MULTICLASS_EQUIPMAGE">
			<prerequisite>Strength 13 or Wisdom 13</prerequisite>
			<requirements>([str:13]||[wis:13])</requirements>
			<setters>
				<set name="multiclass proficiencies">Light armor, medium armor, shields, simple weapons, martial weapons</set>
			</setters>
			<rules>
				<grant type="Grants" id="ID_INTERNAL_GRANT_MULTICLASS" />
				<grant type="Proficiency" id="ID_PROFICIENCY_ARMOR_PROFICIENCY_LIGHT_ARMOR" />
				<grant type="Proficiency" id="ID_PROFICIENCY_ARMOR_PROFICIENCY_MEDIUM_ARMOR" />
				<grant type="Proficiency" id="ID_PROFICIENCY_ARMOR_PROFICIENCY_SHIELDS" />
				<grant type="Proficiency" id="ID_PROFICIENCY_WEAPON_PROFICIENCY_SIMPLE_WEAPONS" />
				<grant type="Proficiency" id="ID_PROFICIENCY_WEAPON_PROFICIENCY_MARTIAL_WEAPONS" />
			</rules>
		</multiclass>
    </element>


    	 <element name="Ritual Binding" type="Class Feature" source="Custom" id="ID_CUSTOM_CLASS_FEATURE_RITUALBINDING">
		<description>
			<p>You can spend 10 minutes to bind a weapon, shield, or set of armor/clothing to your pocket dimension. If you do, that Item is now summonable using the Equipment summoning feature. That item disapears into your pocket dimension until summoned.</p>
		</description>
		<sheet>
			<description>You can spend 10 minutes to bind a weapon, shiel, or set of armor/clothing to your pocket dimension. If you do, that Item is now summonable using the Equipment summoning feature. That item disapears into your pocket dimension until summoned.</description>
		</sheet>
	</element>
    
    
    <element name="Equipment Summoning" type="Class Feature" source="Custom" id="ID_CUSTOM_CLASS_FEATURE_EQUIPMENTSUMMONING">
		<description>
			<p>Beginning at 1st level, you know how to summon a bound weapon, shield, or set of armor/clothing of your choice from a pocket dimension. </p>
			<p class="indent">As an action or bonus action, you can summon and equip a bound weapon or shield of your choice for the alloted point cost; if you do, a weapon you currently have equiped is cast asside or returned to this dimension if it is bound.</p>
			<p class="indent">As an action, if you are wearing bound armor/clothing, you can summon and equip a bound set of armor/clothing of your choice for the alloted point cost; if you do, the armor/clothing you currently have equiped is returned to this dimension.</p>
            <h4>SUMMONING POINT COSTS</h4>
            <p>One and two-handed non-magical melee weapons and shields, as well as clothing cost 0 summoning points.</p>
            <p>Ranged and one-handed magical melee weapons and shields cost 2 points.</p>
            <p>Ranged and two handed magical  melee weapons cost 3 points.</p>
            <p>Non-magical light and medium armor cost 2 points.</p>
            <p>Magical light and medium armor, and non-magical heavy armor cost 3 points.</p>
            <p>Magical heavy armor cost 4 points.</p>
		</description>
		<sheet>
			<description>
                <p class="indent">You have {{summoning-points}} summoning points. </p>
			    <p>Beginning at 1st level, you know how to summon a bound weapon, shield, or set of armor/clothing of your choice from a pocket dimension. </p>
			    <p class="indent">As an action or bonus action, you can summon and equip a bound weapon or shield of your choice for the alloted point cost; if you do, a weapon you currently have equiped is cast asside or returned to this dimension if it is bound. </p>
			    <p class="indent">As an action, if you are wearing bound armor/clothing, you can summon and equip a bound set of armor/clothing of your choice for the alloted point cost; if you do, the armor/clothing you currently have equiped is returned to this dimension.</p>
		    </description>
		</sheet>
	</element>


    <element name="Ability Score Improvement" type="Class Feature" source="Custom" id="ID_CUSTOM_CLASS_FEATURE_ABILITYSCOREIMPROVEMENT_EQUIPMAGE">
		<compendium display="false" />
		<description>
			<p>When you reach 4th level, and again at 6th, 8th, 12th, 14th, 16th, and 19th level, you can increase one ability score of your choice by 2, or you can increase two ability scores of your choice by 1. As normal, you can’t increase an ability score above 20 using this feature.</p>
		</description>
		<sheet display="false" />
		<rules>
			<select type="Class Feature" name="Improvement Option (Equip Mage 4)" supports="Improvement Option,Fighter,4" level="4" />
			<select type="Class Feature" name="Improvement Option (Equip Mage 6)" supports="Improvement Option,Fighter,6" level="6" />
			<select type="Class Feature" name="Improvement Option (Equip Mage 8)" supports="Improvement Option,Fighter,8" level="8" />
			<select type="Class Feature" name="Improvement Option (Equip Mage 12)" supports="Improvement Option,Fighter,12" level="12" />
			<select type="Class Feature" name="Improvement Option (Equip Mage 14)" supports="Improvement Option,Fighter,14" level="14" />
			<select type="Class Feature" name="Improvement Option (Equip Mage 16)" supports="Improvement Option,Fighter,16" level="16" />
			<select type="Class Feature" name="Improvement Option (Equip Mage 19)" supports="Improvement Option,Fighter,19" level="19" />
		</rules>
	</element>


   <element name="Uncanny Dodge" type="Class Feature" source="Custom" id="ID_CUSTOM_CLASS_FEATURE_UNCANNYDODGE">
		<description>
			<p>Starting at 5th level, when an attacker that you can see hits you with an attack, you can use your reaction to halve the attack’s damage against you.</p>
		</description>
		<sheet action="Reaction">
			<description>When an attacker that you can see hits you with an attack, you can halve the attack’s damage against you.</description>
		</sheet>
	</element>


    <element name="Improved Summoning" type="Class Feature" source="Custom" id="ID_CUSTOM_CLASS_FEATURE_LVLTWOEQUIPING">
		<description>
			<p>Starting at 2nd level, you have summoning points as specified on the guide page. You regain these summoning points on a long rest, and may also regain 1d4 summoning points instead of a hit-die on a short rest.</p>
		</description>
		<sheet>
			<description>Starting at 2nd level, you have summoning points as specified on the guide page. You regain these summoning points on a long rest, and may also regain 1d4 summoning points instead of a hit-die on a short rest. </description>
		</sheet>
        <rules>
            <stat name="summoning-points" value="0" level="1"/>
            <stat name="summoning-points" value="2" level="2" />
            <stat name="summoning-points" value="1" level="3" />
            <stat name="summoning-points" value="1" level="4" />
            <stat name="summoning-points" value="1" level="5" />
            <stat name="summoning-points" value="1" level="6" />
            <stat name="summoning-points" value="1" level="7" />
            <stat name="summoning-points" value="1" level="8" />
            <stat name="summoning-points" value="1" level="9" />
            <stat name="summoning-points" value="1" level="10" />
            <stat name="summoning-points" value="1" level="11" />
            <stat name="summoning-points" value="1" level="12" />
            <stat name="summoning-points" value="1" level="13" />
            <stat name="summoning-points" value="1" level="14" />
            <stat name="summoning-points" value="1" level="15" />
            <stat name="summoning-points" value="1" level="16" />
            <stat name="summoning-points" value="1" level="17" />
            <stat name="summoning-points" value="1" level="18" />
            <stat name="summoning-points" value="1" level="19" />
            <stat name="summoning-points" value="1" level="20" />
            <stat name="summoning-points" value="wisdom:modifier" level="7" />
            <stat name="summoning-points" value="wisdom:modifier" level="11" />
            <stat name="summoning-points" value="wisdom:modifier" level="17" />
            <stat name="summoning-points" value="wisdom:modifier" level="20" />
        </rules>
	</element>


    <element name="Superior Summoning" type="Class Feature" source="Custom" id="ID_CUSTOM_CLASS_FEATURE_IMPROVEDEQUIPING">
		<description>
			<p>Starting at 6th level, when you summon an object, you can summon additional objects equal to the orriginal summoned objects' point value in the same timespan for no additional cost.</p>
		</description>
		<sheet>
			<description>Starting at 6th level, when you summon an object, you can summon additional objects equal to the orriginal summoned objects' point value in the same timespan for no additional cost.</description>
		</sheet>
	</element>


    <element name="Telekinetic Control" type="Class Feature" source="Custom" id="ID_CUSTOM_CLASS_FEATURE_TELEKINETICCONTROL">
		<description>
			<p>Starting at 9th level, when you summon an object, you can control those objects from a range, using them to make a ranged projectile attack or recall them.</p>
		</description>
		<sheet>
			<description>Starting at 9th level, when you summon an object, you can control those objects from a range, using them to make a ranged projectile attack or recall them.</description>
		</sheet>
	</element>
</elements>