<?xml version="1.0" encoding="utf-8" ?>
<elements>

	<element name="Dragoon" type="Race" source="Races of Greystone" id="ID_RACE_ROG_DRAGOON">
		<description>

			<h4>DRAGOON TRAITS</h4>
			<p>Your Dragoon character has a variety of natural abilities, the result of their fey background and free nature.</p>
			<p class="indent"><strong><em>Ability Score Increase.</em></strong> Your Dexterity score increases by 2 and your Charisma score by 1.</p>
			<p class="indent"><strong><em>Age.</em></strong> Dragoons reach maturity at the age of 35. a few have been known to grow as old as 1200 years of age.</p>
			<p class="indent"><strong><em>Alignment.</em></strong> Dragoons have a very strong sense of pride. this can lead them strongly in either direction. good or evil. their pride however dictates a code of honor. usually a Dragoon has a Lawful Alignment</p>
			<p class="indent"><strong><em>Size.</em></strong> Dragoons can range between 5"5' to 7" tall your size is medium.</p>
			<p class="indent"><strong><em>Speed.</em></strong> Your base walking speed is 30 feet.</p>
			<p class="indent"><strong><em>Dragoon Ancestry.</em></strong> Due to your Dragoon ancestry, you may choose between the chromatic and metallic colors. when you use your tail attack. you may add 1d6 of that type of damage to the attack. in some instances dragoons have resistance to the related element</p>
			<p class="indent"><strong><em>Tail attack.</em></strong> dragoons may use their tail to attack with. Causing 1d6 slashing damage. This attack is a natural weapon that takes skill to use. Use your dex modifier for this attack.  Additionally. As a bonus action you may charge this tail with the element of your heritage. You deal 1d6 extra damage based on your Dragoon heritage during this turn when you use your tail attack.  (E.g silver dragon does an extra 1d6 cold damage)</p>
			<p class="indent"><strong><em>Languages.</em></strong> You can speak, read, and write Common and Dragoon. </p>
			<p class="indent"><strong><em>Subrace.</em></strong> Dragoons come in all shapes and sizes. most look more on the fey elvish side. some take on a more human appearance. different Dragoon types have different Traits.</p>
		</description>
		<sheet display="false" />
		<rules>
			<stat name="dexterity" value="2" />
			<stat name="charisma" value="1" />
			<stat name="innate speed" value="30" bonus="base" />
			<grant type="Size" id="ID_SIZE_MEDIUM" />
			<grant type="Language" id="ID_LANGUAGE_COMMON" />
			<grant type="Language" id="ID_LANGUAGE_DRACONIC" />
			<grant type="Proficiency" id="ID_ROG_PROFICIENCY_WEAPON_PROFICIENCY_DRAGOON_NATURAL_WEAPONS" />
			<grant type="Racial Trait" id="ID_RACIAL_TRAIT_ROG_DRAGOON_ANCESTRY" />
			<grant type="Racial Trait" id="ID_RACIAL_TRAIT_ROG_ELEMENTAL_DISCHARGE" />
			<grant type="Racial Trait" id="ID_RACIAL_TRAIT_ROG_TAIL_ATTACK" />
			<grant type="Racial Trait" id="ID_RACIAL_TRAIT_ROG_SUBRACE_DRAGOON" />
		</rules>
	</element>
		<element name="Dragoon Ancestry" type="Racial Trait" source="Races of Greystone" id="ID_RACIAL_TRAIT_ROG_DRAGOON_ANCESTRY">
		<description>
			<p>You have Dragoon ancestry. Choose one type of dragon from the Dragoon Ancestry table. Your tail attack extra damage is determined by the dragon type, as shown in the table.</p>
			<h5>Dragoon ANCESTRY</h5>
			<table>
				<thead>
					<tr>
						<td>Dragon</td>
						<td>Damage Type</td>
						<td>Tail Attack</td>
					</tr>
				</thead>
				<tr>
					<td>Black</td>
					<td>Acid</td>
				</tr>
				<tr>
					<td>Blue</td>
					<td>Lightning</td>
				</tr>
				<tr>
					<td>Brass</td>
					<td>Fire</td>
				</tr>
				<tr>
					<td>Bronze</td>
					<td>Lightning</td>
				</tr>
				<tr>
					<td>Copper</td>
					<td>Acid</td>
				</tr>
				<tr>
					<td>Gold</td>
					<td>Fire</td>
				</tr>
				<tr>
					<td>Green</td>
					<td>Poison</td>
				</tr>
				<tr>
					<td>Red</td>
					<td>Fire</td>
				</tr>
				<tr>
					<td>Silver</td>
					<td>Cold</td>
				</tr>
				<tr>
					<td>White</td>
					<td>Cold</td>
				</tr>
			</table>
		</description>
		<rules>
			<select type="Racial Trait" name="Dragoon Ancestry" supports="Dragoon Ancestry" />
		</rules>
	</element>
	<element name="Elemental discharge" type="Racial Trait" source="Races of Greystone" id="ID_RACIAL_TRAIT_ROG_ELEMENTAL_DISCHARGE">
		<description>
			<p>You may discharge {{Dragoon-ancestry:damage type}} damage either to your tail or claws if you have them.</p>
			<p>You can use your action to attack with your tail.This attack is a natural weapon that takes skill to use. Use your dexterity modifier for this attack.</p>
			<p>You may use your bonus action to coat your tail in elemental energys based on your Dragoon ancestry. you may then use your action to attack with the tail. upon hit you deal 1d6 damage of that element type. 2d6 at 5th level. 3d6 at 11th level. 4d6 at 17th level</p>
			<p>You may use your elemental energy as many times equal to your constitution modifier (minimum of 1). you must complete a long rest to regain the uses.</p>
		</description>
		<sheet action="Bonus Action" usage="1/Turn">
			<description>coat your tail or claw in {{Dragoon-ancestry:damage type}}. Your tail attack adds {{tail-attack:dice count}}d{{tail-attack:dice size}} {{Dragoon-ancestry:damage type}} damage. you may do this {{constitution:modifier}} per long rest.</description>
		</sheet>
		<rules>
			<stat name="tail-attack:dice size" value="6" bonus="dice" />
			<stat name="tail-attack:dice count" value="1" level="1" />
			<stat name="tail-attack:dice count" value="1" level="5" />
			<stat name="tail-attack:dice count" value="1" level="11" />
			<stat name="tail-attack:dice count" value="1" level="17" />
		</rules>
	</element>
	<element name="Tail attack" type="Racial Trait" source="Races of Greystone" id="ID_RACIAL_TRAIT_ROG_TAIL_ATTACK">
		<description>
			<p>Your tail is a natural weapon, which you can use to make unarmed strikes. If you hit with it, you deal slashing damage equal to 1d6 + your Dexterity modifier, instead of the bludgeoning damage normal for an unarmed strike.</p>
		</description>
		<sheet>
			<description>Your Scaled Tail is a natural weapon, which you can use to make unarmed strikes. It has a +{{dragoon:tailattack}} bonus to hit. It deals damage equal to 1d6+{{dragoon:taildamage}}.</description>
		</sheet>
		<rules>
            <stat name="dragoon:tailattack" value="proficiency" bonus="base"/>
            <stat name="dragoon:tailattack" value="dexterity:modifier" bonus="ability" />
            <stat name="dragoon:tailattack" value="strength:modifier" bonus="ability" />
            <stat name="dragoon:taildamage" value="dexterity:modifier" bonus="ability" />
            <stat name="dragoon:taildamage" value="strength:modifier" bonus="ability" />
        </rules>
	</element>
	<element name="Damage Resistance" type="Racial Trait" source="Races of Greystone" id="ID_RACIAL_TRAIT_ROG_DAMAGE_RESISTANCE">
		<description>
			<p>You have resistance to the damage type associated with your Dragoon ancestry.</p>
		</description>
		<sheet>
			<description>You have resistance to {{Dragoon-ancestry:damage type}}.</description>
		</sheet>
		<rules>
			<grant type="Condition" id="ID_INTERNAL_CONDITION_DAMAGE_RESISTANCE_ACID" requirements="ID_RACIAL_TRAIT_ROG_DRAGOON_ANCESTRY_BLACK||ID_RACIAL_TRAIT_ROG_DRAGOON_ANCESTRY_COPPER" />
			<grant type="Condition" id="ID_INTERNAL_CONDITION_DAMAGE_RESISTANCE_LIGHTNING" requirements="ID_RACIAL_TRAIT_ROG_DRAGOON_ANCESTRY_BLUE||ID_RACIAL_TRAIT_ROG_DRAGOON_ANCESTRY_BRONZE" />
			<grant type="Condition" id="ID_INTERNAL_CONDITION_DAMAGE_RESISTANCE_FIRE" requirements="ID_RACIAL_TRAIT_ROG_DRAGOON_ANCESTRY_BRASS||ID_RACIAL_TRAIT_ROG_DRAGOON_ANCESTRY_GOLD||ID_RACIAL_TRAIT_ROG_DRAGOON_ANCESTRY_RED" />
			<grant type="Condition" id="ID_INTERNAL_CONDITION_DAMAGE_RESISTANCE_POISON" requirements="ID_RACIAL_TRAIT_ROG_DRAGOON_ANCESTRY_GREEN" />
			<grant type="Condition" id="ID_INTERNAL_CONDITION_DAMAGE_RESISTANCE_COLD" requirements="ID_RACIAL_TRAIT_ROG_DRAGOON_ANCESTRY_SILVER||ID_RACIAL_TRAIT_ROG_DRAGOON_ANCESTRY_WHITE" />
		</rules>
	</element>
	<element name="Dragoon Ancestry (Black)" type="Racial Trait" source="Races of Greystone" id="ID_RACIAL_TRAIT_ROG_DRAGOON_ANCESTRY_BLACK">
		<supports>Dragoon Ancestry</supports>
		<description>
			<div element="ID_RACIAL_TRAIT_ROG_DRAGOON_ANCESTRY" />
		</description>
		<sheet alt="Black">
			<description>Your Dragoon ancestry is {{Dragoon-ancestry}}. Your damage type is {{Dragoon-ancestry:damage type}}. You have resistance to {{Dragoon-ancestry:damage type}}.</description>
		</sheet>
		<rules>
			<stat inline="true" name="Dragoon-ancestry" value="Black"/>
			<stat inline="true" name="Dragoon-ancestry:damage type" value="Acid" />
			<stat inline="true" name="Dragoon-ancestry:tail" />
		</rules>
	</element>
	<element name="Dragoon Ancestry (Blue)" type="Racial Trait" source="Races of Greystone" id="ID_RACIAL_TRAIT_ROG_DRAGOON_ANCESTRY_BLUE">
		<supports>Dragoon Ancestry</supports>
		<description>
			<div element="ID_RACIAL_TRAIT_ROG_DRAGOON_ANCESTRY" />
		</description>
		<sheet alt="Blue">
			<description>Your Dragoon ancestry is {{Dragoon-ancestry}}. Your damage type is {{Dragoon-ancestry:damage type}}. You have resistance to {{Dragoon-ancestry:damage type}}.</description>
		</sheet>
		<rules>
			<stat inline="true" name="Dragoon-ancestry" value="Blue"/>
			<stat inline="true" name="Dragoon-ancestry:damage type" value="Lightning" />
			<stat inline="true" name="Dragoon-ancestry:tail" />
		</rules>
	</element>
	<element name="Dragoon Ancestry (Brass)" type="Racial Trait" source="Races of Greystone" id="ID_RACIAL_TRAIT_ROG_DRAGOON_ANCESTRY_BRASS">
		<supports>Dragoon Ancestry</supports>
		<description>
			<div element="ID_RACIAL_TRAIT_ROG_DRAGOON_ANCESTRY" />
		</description>
		<sheet alt="Brass">
			<description>Your Dragoon ancestry is {{Dragoon-ancestry}}. Your damage type is {{Dragoon-ancestry:damage type}}. You have resistance to {{Dragoon-ancestry:damage type}}.</description>
		</sheet>
		<rules>
			<stat inline="true" name="Dragoon-ancestry" value="Brass"/>
			<stat inline="true" name="Dragoon-ancestry:damage type" value="Fire" />
			<stat inline="true" name="Dragoon-ancestry:tail" />
		</rules>
	</element>
	<element name="Dragoon Ancestry (Bronze)" type="Racial Trait" source="Races of Greystone" id="ID_RACIAL_TRAIT_ROG_DRAGOON_ANCESTRY_BRONZE">
		<supports>Dragoon Ancestry</supports>
		<description>
			<div element="ID_RACIAL_TRAIT_ROG_DRAGOON_ANCESTRY" />
		</description>
		<sheet alt="Bronze">
			<description>Your Dragoon ancestry is {{Dragoon-ancestry}}. Your damage type is {{Dragoon-ancestry:damage type}}. You have resistance to {{Dragoon-ancestry:damage type}}.</description>
		</sheet>
		<rules>
			<stat inline="true" name="Dragoon-ancestry" value="Bronze"/>
			<stat inline="true" name="Dragoon-ancestry:damage type" value="Lightning" />
			<stat inline="true" name="Dragoon-ancestry:tail" />
		</rules>
	</element>
	<element name="Dragoon Ancestry (Copper)" type="Racial Trait" source="Races of Greystone" id="ID_RACIAL_TRAIT_ROG_DRAGOON_ANCESTRY_COPPER">
		<supports>Dragoon Ancestry</supports>
		<description>
			<div element="ID_RACIAL_TRAIT_ROG_DRAGOON_ANCESTRY" />
		</description>
		<sheet alt="Copper">
			<description>Your Dragoon ancestry is {{Dragoon-ancestry}}. Your damage type is {{Dragoon-ancestry:damage type}}. You have resistance to {{Dragoon-ancestry:damage type}}.</description>
		</sheet>
		<rules>
			<stat inline="true" name="Dragoon-ancestry" value="Copper"/>
			<stat inline="true" name="Dragoon-ancestry:damage type" value="Acid" />
			<stat inline="true" name="Dragoon-ancestry:tail" />
		</rules>
	</element>
	<element name="Dragoon Ancestry (Gold)" type="Racial Trait" source="Races of Greystone" id="ID_RACIAL_TRAIT_ROG_DRAGOON_ANCESTRY_GOLD">
		<supports>Dragoon Ancestry</supports>
		<description>
			<div element="ID_RACIAL_TRAIT_ROG_DRAGOON_ANCESTRY" />
		</description>
		<sheet alt="Gold">
			<description>Your Dragoon ancestry is {{Dragoon-ancestry}}. Your damage type is {{Dragoon-ancestry:damage type}}. You have resistance to {{Dragoon-ancestry:damage type}}.</description>
		</sheet>
		<rules>
			<stat inline="true" name="Dragoon-ancestry" value="Gold"/>
			<stat inline="true" name="Dragoon-ancestry:damage type" value="Fire" />
			<stat inline="true" name="Dragoon-ancestry:tail" />
		</rules>
	</element>
	<element name="Dragoon Ancestry (Green)" type="Racial Trait" source="Races of Greystone" id="ID_RACIAL_TRAIT_ROG_DRAGOON_ANCESTRY_GREEN">
		<supports>Dragoon Ancestry</supports>
		<description>
			<div element="ID_RACIAL_TRAIT_ROG_DRAGOON_ANCESTRY" />
		</description>
		<sheet alt="Green">
			<description>Your Dragoon ancestry is {{Dragoon-ancestry}}. Your damage type is {{Dragoon-ancestry:damage type}}. You have resistance to {{Dragoon-ancestry:damage type}}.</description>
		</sheet>
		<rules>
			<stat inline="true" name="Dragoon-ancestry" value="Green"/>
			<stat inline="true" name="Dragoon-ancestry:damage type" value="Poison" />
			<stat inline="true" name="Dragoon-ancestry:tail" />
		</rules>
	</element>
	<element name="Dragoon Ancestry (Red)" type="Racial Trait" source="Races of Greystone" id="ID_RACIAL_TRAIT_ROG_DRAGOON_ANCESTRY_RED">
		<supports>Dragoon Ancestry</supports>
		<description>
			<div element="ID_RACIAL_TRAIT_ROG_DRAGOON_ANCESTRY" />
		</description>
		<sheet alt="Red">
			<description>Your Dragoon ancestry is {{Dragoon-ancestry}}. Your damage type is {{Dragoon-ancestry:damage type}}. You have resistance to {{Dragoon-ancestry:damage type}}.</description>
		</sheet>
		<rules>
			<stat inline="true" name="Dragoon-ancestry" value="Red"/>
			<stat inline="true" name="Dragoon-ancestry:damage type" value="Fire" />
			<stat inline="true" name="Dragoon-ancestry:tail" />
		</rules>
	</element>
	<element name="Dragoon Ancestry (Silver)" type="Racial Trait" source="Races of Greystone" id="ID_RACIAL_TRAIT_ROG_DRAGOON_ANCESTRY_SILVER">
		<supports>Dragoon Ancestry</supports>
		<description>
			<div element="ID_RACIAL_TRAIT_ROG_DRAGOON_ANCESTRY" />
		</description>
		<sheet alt="Silver">
			<description>Your Dragoon ancestry is {{Dragoon-ancestry}}. Your damage type is {{Dragoon-ancestry:damage type}}. You have resistance to {{Dragoon-ancestry:damage type}}.</description>
		</sheet>
		<rules>
			<stat inline="true" name="Dragoon-ancestry" value="Silver"/>
			<stat inline="true" name="Dragoon-ancestry:damage type" value="Cold" />
			<stat inline="true" name="Dragoon-ancestry:tail" />
		</rules>
	</element>
	<element name="Dragoon Ancestry (White)" type="Racial Trait" source="Races of Greystone" id="ID_RACIAL_TRAIT_ROG_DRAGOON_ANCESTRY_WHITE">
		<supports>Dragoon Ancestry</supports>
		<description>
			<div element="ID_RACIAL_TRAIT_ROG_DRAGOON_ANCESTRY" />
		</description>
		<sheet alt="White">
			<description>Your Dragoon ancestry is {{Dragoon-ancestry}}. Your damage type is {{Dragoon-ancestry:damage type}}. You have resistance to {{Dragoon-ancestry:damage type}}.</description>
		</sheet>
		<rules>
			<stat inline="true" name="Dragoon-ancestry" value="White"/>
			<stat inline="true" name="Dragoon-ancestry:damage type" value="Cold" />
			<stat inline="true" name="Dragoon-ancestry:tail" />
		</rules>
	</element>
	<element name="Dragoon Subrace" type="Racial Trait" source="Races of Greystone" id="ID_RACIAL_TRAIT_ROG_SUBRACE_DRAGOON">
		<description>
			<p>through evolution and different blood lines in dragoon people resulted in three main subraces: Choose one of these subraces. </p>
		</description>
		<sheet display="false" />
		<rules>
			<select type="Sub Race" name="Dragoon Subrace" supports="Dragoon" />
		</rules>
	</element>
	<element name="Dragoon Winged" type="Sub Race" source="Races of Greystone" id="ID_ROG_DRAGOON_SUBRACE_WINGED">
		<supports>Dragoon</supports>
		<description>
			<p>You have Dragon-like wings sprouting from your shoulder blades. You have a flying speed of 30 feet.</p>
		</description>
		<sheet>
			<description>You have a flying speed of 30 feet.</description>
		</sheet>
		<rules>
		<stat name="innate speed:fly" value="30" bonus="base" />
		</rules>
	</element>
	<element name="Dragoon Clawed" type="Sub Race" source="Races of Greystone" id="ID_ROG_DRAGOON_SUBRACE_CLAWED">
		<supports>Dragoon</supports>
		<description>
			<p>you have claws protruding from your fingertips. you gain umarmed strikes 1d6. you may also use your Elemental tail as elemental claws instead of the tail.</p>
		</description>
		<sheet>
			<description>your natural claws have unarmed strike. 1d6 damage. you may use dex or str for this attack. you may also use your elemental tail to engulf claws with {{Dragoon-ancestry:damage type}} </description>
		</sheet>
		<rules>
			<grant type="Racial Trait" id="ID_RACIAL_TRAIT_ROG_CLAW_ATTACK" />
		</rules>
	</element>
	<element name="Dragoon Armored" type="Sub Race" source="Races of Greystone" id="ID_ROG_DRAGOON_SUBRACE_ARMORED">
		<supports>Dragoon</supports>
		<description>
			<p>your Dragon ancestry has focused on protecting yourself and your allies. you have developed naturall armor. your AC is 13 + Dex modifier while not wearing armor </p>
		</description>
		<sheet>
			<description>Your AC = 13 + {{dexterity:modifier}} </description>
		</sheet>
		<setters>
			<set name="category">Armor</set>
			<set name="armorClass">13 + Dex modifier</set>
		</setters>
		<rules>
			<stat name="locathah:natural armor" value="13" />
            <stat name="locathah:natural armor" value="dexterity:modifier" />
            <stat name="ac:calculation" value="locathah:natural armor" bonus="calculation" alt="Natural Armor (Locathah)" />
		</rules>
	</element>
	<element name="Claw Attack" type="Racial Trait" source="Races of Greystone" id="ID_RACIAL_TRAIT_ROG_CLAW_ATTACK">
        <description>
            <p>Make a something here, mention finesse, for the sake of not crowding the sheet with it, I wont</p>
        </description>
        <sheet>
            <description>Your claws are natural weapons, which you can use to make an unarmed strike. It has a +{{dragoon:clawattack}} bonus to hit. It deals damage equal to 1d6+{{dragoon:clawdamage}}. </description>
        </sheet>
        <rules>
            <stat name="dragoon:clawattack" value="proficiency" bonus="base"/>
            <stat name="dragoon:clawattack" value="dexterity:modifier" bonus="ability"/>
            <stat name="dragoon:clawattack" value="strength:modifier" bonus="ability"/>
            <stat name="dragoon:clawdamage" value="dexterity:modifier" bonus="ability"/>
            <stat name="dragoon:clawdamage" value="strength:modifier" bonus="ability"/>
        </rules>
    </element>
	
</elements>
