<?xml version="1.0" encoding="utf-8" ?>
<Defs>
  <HediffDef ParentName="RoleStatBuff">
    <defName>PN_CombatCommand</defName>
    <label>combat command module</label>
    <description>By encouraging and commanding nearby allies, this person can enhance their focus in combat and thus their battle performance.</description>
    <hediffClass>HediffWithComps</hediffClass>
    <comps>
      <li Class="HediffCompProperties_RemoveIfApparelDropped" />
      <li Class="HediffCompProperties_DisappearsOnDeath"/>
      <li Class="HediffCompProperties_GiveHediffsInRange">
        <range>9.9</range>
        <mote>Mote_CombatCommand</mote>
        <hideMoteWhenNotDrafted>true</hideMoteWhenNotDrafted>
        <targetingParameters>
          <canTargetBuildings>false</canTargetBuildings>
          <canTargetAnimals>false</canTargetAnimals>
          <canTargetMechs>false</canTargetMechs>
          <onlyTargetColonists>true</onlyTargetColonists>
        </targetingParameters>
        <hediff>PN_CombatCommandBuff</hediff>
      </li>
    </comps>
    <isBad>false</isBad>
  </HediffDef>

  <HediffDef ParentName="RoleStatBuff">
    <defName>PN_CombatCommandBuff</defName>
    <label>combat command</label>
    <description>Combat abilities are boosted thanks to being near someone who is using the combat command ability.</description>
    <hediffClass>HediffWithComps</hediffClass>
    <comps>
      <li Class="HediffCompProperties_Disappears">
        <showRemainingTime>false</showRemainingTime>
      </li>
      <li Class="HediffCompProperties_DisappearsOnDeath"/>
      <li Class="HediffCompProperties_Link">
        <requireLinkOnOtherPawn>false</requireLinkOnOtherPawn>
        <maxDistance>10</maxDistance>
        <customMote>Mote_CombatCommandLinkLine</customMote>
      </li>
    </comps>
    <isBad>false</isBad>
    <stages>
      <li>
        <statOffsets>
          <ShootingAccuracyPawn>2</ShootingAccuracyPawn>
          <MeleeHitChance>2</MeleeHitChance>
          <AimingDelayFactor>-0.20</AimingDelayFactor>
        </statOffsets>
      </li>
    </stages>
  </HediffDef>
</Defs>