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

  <AbilityDef Abstract="True" Name="DRM_RoleAuraBuffBase">
    <jobDef>CastAbilityOnThing</jobDef>
    <targetRequired>False</targetRequired>
    <canUseAoeToGetTargets>False</canUseAoeToGetTargets>
    <stunTargetWhileCasting>True</stunTargetWhileCasting>
    <showPsycastEffects>False</showPsycastEffects>
    <sendMessageOnCooldownComplete>true</sendMessageOnCooldownComplete>
    <displayGizmoWhileUndrafted>True</displayGizmoWhileUndrafted>
    <disableGizmoWhileUndrafted>False</disableGizmoWhileUndrafted>
    <hotKey>Misc12</hotKey>
    <warmupStartSound>CombatCommand_Warmup</warmupStartSound>
    <statBases>
      <Ability_Duration>1000</Ability_Duration>
      <Ability_EffectRadius>9.9</Ability_EffectRadius>
    </statBases>
    <verbProperties>
      <verbClass>Verb_CastAbility</verbClass>
      <warmupTime>0.5</warmupTime>
      <range>9.9</range>
      <drawAimPie>False</drawAimPie>
      <requireLineOfSight>False</requireLineOfSight>
      <targetParams>
        <canTargetSelf>true</canTargetSelf>
        <canTargetPawns>false</canTargetPawns>
        <canTargetBuildings>false</canTargetBuildings>
        <canTargetAnimals>false</canTargetAnimals>
        <canTargetHumans>false</canTargetHumans>
        <canTargetMechs>false</canTargetMechs>
      </targetParams>
    </verbProperties>
  </AbilityDef>

  <AbilityDef>
    <defName>DRM_Skip</defName>
    <label>skip</label>
    <description>Teleport the target to a desired position not too far from its starting point. Objects which are too large cannot be teleported.</description>
    <iconPath>UI/Abilities/Skip</iconPath>
    <showPsycastEffects>False</showPsycastEffects>
    <cooldownTicksRange>1800</cooldownTicksRange>
    <sendMessageOnCooldownComplete>true</sendMessageOnCooldownComplete>
    <verbProperties>
      <verbClass>Verb_CastAbility</verbClass>
      <label>skip</label>
      <warmupTime>0.25</warmupTime>
      <range>30</range>
      <targetParams>
        <canTargetSelf>True</canTargetSelf>
        <canTargetAnimals>True</canTargetAnimals>
        <canTargetItems>True</canTargetItems>
      </targetParams>
    </verbProperties>
    <comps>
      <li Class="CompProperties_AbilityTeleport">
        <compClass>CompAbilityEffect_Teleport</compClass>
        <destination>Selected</destination>
        <requiresLineOfSight>True</requiresLineOfSight>
        <range>30</range>
        <clamorType>Ability</clamorType>
        <clamorRadius>10</clamorRadius>
        <destClamorType>Ability</destClamorType>
        <destClamorRadius>10</destClamorRadius>
        <stunTicks>18~60</stunTicks>
        <goodwillImpact>-15</goodwillImpact>
        <applyGoodwillImpactToLodgers>False</applyGoodwillImpactToLodgers>
      </li>
    </comps>
  </AbilityDef>

  <AbilityDef>
    <defName>DRM_Farskip</defName>
    <label>farskip</label>
    <description>Skip the caster, to an ally at a distant location. This can send people far across the planet, but only works if there is a willing ally on the other side to use as a navigation beacon. The skipped people will always appear near a random ally on the target map.</description>
    <iconPath>UI/Abilities/Farskip</iconPath>
    <targetWorldCell>True</targetWorldCell>
    <showGizmoOnWorldView>True</showGizmoOnWorldView>
    <hostile>false</hostile>
    <cooldownTicksRange>60000</cooldownTicksRange>
    <sendMessageOnCooldownComplete>true</sendMessageOnCooldownComplete>
    <verbProperties>
      <verbClass>Verb_CastAbility</verbClass>
      <label>farskip</label>
      <warmupTime>5</warmupTime>
      <range>0</range>
      <drawAimPie>False</drawAimPie>
      <requireLineOfSight>False</requireLineOfSight>
    </verbProperties>
    <comps>
      <li Class="CompProperties_AbilityFarskip">
        <stunTicks>18~60</stunTicks>
        <clamorType>Ability</clamorType>
        <clamorRadius>10</clamorRadius>
      </li>
    </comps>
  </AbilityDef>

  <AbilityDef>
    <defName>DR_FireBurst</defName>
    <label>fire burst</label>
    <description>Overdrive orbs cause explosion and set fire on ground.</description>
    <jobDef>CastAbilityOnThing</jobDef>
    <iconPath>UI/Abilities/FireBurst</iconPath>
    <cooldownTicksRange>60000</cooldownTicksRange>
    <sendMessageOnCooldownComplete>true</sendMessageOnCooldownComplete>
    <aiCanUse>true</aiCanUse>
    <ai_SearchAOEForTargets>true</ai_SearchAOEForTargets>
    <targetRequired>false</targetRequired>
    <showCastingProgressBar>true</showCastingProgressBar>

    <displayGizmoWhileUndrafted>false</displayGizmoWhileUndrafted>
    <disableGizmoWhileUndrafted>true</disableGizmoWhileUndrafted>
    <verbProperties>
      <verbClass>Verb_CastAbility</verbClass>
      <warmupEffecter>Fire_Burst_Warmup</warmupEffecter>
      <warmupTime>1.5</warmupTime>
      <requireLineOfSight>false</requireLineOfSight>
      <range>12</range>
      <drawAimPie>false</drawAimPie>
      <targetParams>
        <canTargetSelf>true</canTargetSelf>
      </targetParams>
    </verbProperties>
    <comps>
      <li Class="DragonianMix.CompProperties_AbilityDRM_FireBurst">
        <radius>12</radius>
        <damageDef>DRM_Flame</damageDef>
        <damageAmount>80</damageAmount>
        <armorPenetration>0</armorPenetration>
      </li>
    </comps>
  </AbilityDef>

  <AbilityDef>
    <defName>DRM_Feargaspop</defName>
    <label>FearGas Pop</label>
    <description>Release a cloud of Feargas.</description>
    <iconPath>UI/Abilities/Smokepop</iconPath>
    <cooldownTicksRange>60000</cooldownTicksRange>
    <sendMessageOnCooldownComplete>true</sendMessageOnCooldownComplete>
    <aiCanUse>true</aiCanUse>
    <casterMustBeCapableOfViolence>false</casterMustBeCapableOfViolence>
    <verbProperties>
      <verbClass>Verb_CastAbility</verbClass>
      <label>release Feargas</label>
      <drawAimPie>true</drawAimPie>
      <warmupTime>1</warmupTime>
      <range>24.9</range>
      <targetParams>
        <canTargetPawns>False</canTargetPawns>
        <canTargetLocations>True</canTargetLocations>
      </targetParams>

    </verbProperties>
    <comps>
      <li Class="DragonianMix.CompProperties_AbilityDRM_Deaddustpop">
        <damageDef>DRM_Feargas</damageDef>
        <smokeRadius>9</smokeRadius>
        <clamorType>Ability</clamorType>
        <clamorRadius>20</clamorRadius>
        <postExplosionSpawnThingDef>DRM_FearGasCloud</postExplosionSpawnThingDef>        <!-- ARL_ToxicGasCloud -->
        <postExplosionSpawnChance>1</postExplosionSpawnChance>
        <postExplosionSpawnThingCount>1</postExplosionSpawnThingCount>
      </li>
    </comps>
  </AbilityDef>

  <AbilityDef>
    <defName>DRM_LightingStrike</defName>
    <label>LightingStrike</label>
    <description>Summon a LightingStrike.</description>
    <iconPath>UI/Abilities/Flashstorm</iconPath>
    <cooldownTicksRange>1800</cooldownTicksRange>
    <sendMessageOnCooldownComplete>true</sendMessageOnCooldownComplete>
    <aiCanUse>true</aiCanUse>
    <casterMustBeCapableOfViolence>false</casterMustBeCapableOfViolence>
    <verbProperties>
      <verbClass>Verb_CastAbility</verbClass>
      <label>Summon LightingStrike</label>
      <drawAimPie>true</drawAimPie>
      <warmupTime>1</warmupTime>
      <range>24.9</range>
      <targetParams>
        <canTargetPawns>False</canTargetPawns>
        <canTargetLocations>True</canTargetLocations>
      </targetParams>

    </verbProperties>
    <comps>
      <li Class="DragonianMix.CompProperties_AbilityDRM_LightingStrike">
        <explosionRadius>4.0</explosionRadius>
        <damageDef>DRM_Arc</damageDef>
        <damageAmount>45</damageAmount>
        <armorPenetration>1.0</armorPenetration>
      </li>
    </comps>
  </AbilityDef>

  <AbilityDef>
    <defName>DRM_LightningBombardment</defName>
    <label>LightningStorm</label>
    <description>Summon a LightningStorm.</description>
    <iconPath>UI/Abilities/Flashstorm</iconPath>
    <cooldownTicksRange>60000</cooldownTicksRange>
    <sendMessageOnCooldownComplete>true</sendMessageOnCooldownComplete>
    <aiCanUse>true</aiCanUse>
    <casterMustBeCapableOfViolence>false</casterMustBeCapableOfViolence>
    <verbProperties>
      <verbClass>Verb_CastAbility</verbClass>
      <label>Summon LightningStorm</label>
      <drawAimPie>true</drawAimPie>
      <warmupTime>1</warmupTime>
      <range>29.9</range>
      <targetParams>
        <canTargetPawns>False</canTargetPawns>
        <canTargetLocations>True</canTargetLocations>
      </targetParams>

    </verbProperties>
    <comps>
      <li Class="DragonianMix.CompProperties_AbilityDRM_LightningBombardment">
        <impactAreaRadius>12</impactAreaRadius>
        <explosionRadiusRange>3~4</explosionRadiusRange>
        <bombIntervalTicks>30</bombIntervalTicks>
        <explosionCount>20</explosionCount>

        <damageDef>DRM_Arc</damageDef>
        <damageAmount>45</damageAmount>
        <armorPenetration>1.0</armorPenetration>
      </li>
    </comps>
  </AbilityDef>

  <AbilityDef>
    <defName>DRM_Acidgaspop</defName>
    <label>AcidGas Pop</label>
    <description>Release a cloud of Acidgas.</description>
    <iconPath>UI/Abilities/Smokepop</iconPath>
    <cooldownTicksRange>60000</cooldownTicksRange>
    <sendMessageOnCooldownComplete>true</sendMessageOnCooldownComplete>
    <aiCanUse>true</aiCanUse>
    <casterMustBeCapableOfViolence>false</casterMustBeCapableOfViolence>
    <verbProperties>
      <verbClass>Verb_CastAbility</verbClass>
      <label>release Acidgas</label>
      <drawAimPie>true</drawAimPie>
      <warmupTime>1</warmupTime>
      <range>24.9</range>
      <targetParams>
        <canTargetPawns>False</canTargetPawns>
        <canTargetLocations>True</canTargetLocations>
      </targetParams>

    </verbProperties>
    <comps>
      <li Class="DragonianMix.CompProperties_AbilityDRM_Deaddustpop">
        <damageDef>DRM_AcidCover</damageDef>
        <damageAmount>25</damageAmount>
        <armorPenetration>0.5</armorPenetration>
        <smokeRadius>9</smokeRadius>
        <clamorType>Ability</clamorType>
        <clamorRadius>20</clamorRadius>
        <postExplosionSpawnThingDef>DRM_AcidGasCloud</postExplosionSpawnThingDef>        <!-- ARL_ToxicGasCloud -->
        <postExplosionSpawnChance>1</postExplosionSpawnChance>
        <postExplosionSpawnThingCount>1</postExplosionSpawnThingCount>
      </li>
    </comps>
  </AbilityDef>



  <AbilityDef>
    <defName>DRM_Frostcloudpop</defName>
    <label>FrostCloud Pop</label>
    <description>Release a cloud of Frozen ice.</description>
    <iconPath>UI/Abilities/Smokepop</iconPath>
    <cooldownTicksRange>60000</cooldownTicksRange>
    <sendMessageOnCooldownComplete>true</sendMessageOnCooldownComplete>
    <aiCanUse>true</aiCanUse>
    <casterMustBeCapableOfViolence>false</casterMustBeCapableOfViolence>
    <verbProperties>
      <verbClass>Verb_CastAbility</verbClass>
      <label>release FrostCloud</label>
      <drawAimPie>true</drawAimPie>
      <warmupTime>1</warmupTime>
      <range>24.9</range>
      <targetParams>
        <canTargetPawns>False</canTargetPawns>
        <canTargetLocations>True</canTargetLocations>
      </targetParams>

    </verbProperties>
    <comps>
      <li Class="DragonianMix.CompProperties_AbilityDRM_Deaddustpop">
        <damageDef>DRM_Damage_FrostCoverd</damageDef>
        <damageAmount>20</damageAmount>
        <armorPenetration>0.5</armorPenetration>
        <smokeRadius>6</smokeRadius>
        <clamorType>Ability</clamorType>
        <clamorRadius>20</clamorRadius>
        <postExplosionSpawnThingDef>DRM_FrostGasCloud_Ex</postExplosionSpawnThingDef>        <!-- ARL_ToxicGasCloud -->
        <postExplosionSpawnChance>1</postExplosionSpawnChance>
        <postExplosionSpawnThingCount>1</postExplosionSpawnThingCount>
      </li>
    </comps>
  </AbilityDef>

  <AbilityDef ParentName="DRM_RoleAuraBuffBase">
    <defName>DRM_HealBreakOut</defName>
    <label>Heal BreakOut</label>
    <description>Overdrive orbs.Heal wound in insane speed.</description>
    <iconPath>UI/Abilities/ImmunityDrive</iconPath>
    <warmupMoteSocialSymbol>UI/Abilities/ImmunityDrive</warmupMoteSocialSymbol>
    <cooldownTicksRange>60000</cooldownTicksRange>
    <sendMessageOnCooldownComplete>true</sendMessageOnCooldownComplete>
    <aiCanUse>false</aiCanUse>
    <showCastingProgressBar>true</showCastingProgressBar>

    <displayGizmoWhileUndrafted>false</displayGizmoWhileUndrafted>
    <disableGizmoWhileUndrafted>true</disableGizmoWhileUndrafted>
    <statBases>
      <Ability_Duration>150</Ability_Duration>
      <Ability_EffectRadius>0</Ability_EffectRadius>
    </statBases>
    <verbProperties>
      <range>0</range>
    </verbProperties>
    <comps>
      <li Class="CompProperties_AbilityGiveHediff">
        <compClass>CompAbilityEffect_GiveHediff</compClass>
        <hediffDef>DRM_HealBreakOut</hediffDef>
        <onlyApplyToSelf>True</onlyApplyToSelf>
        <replaceExisting>true</replaceExisting>
      </li>
    </comps>
  </AbilityDef>

</Defs>