<?xml version="1.0" encoding="utf-8" ?>
<Defs>
  <!--==================================== 동조율 ====================================-->
  <HediffDef Abstract="True" Name="PanielSynchroBase">
    <hediffClass>HediffWithComps</hediffClass>
    <defaultLabelColor>(1,1,0.5)</defaultLabelColor>
    <scenarioCanAdd>false</scenarioCanAdd>
    <maxSeverity>1</maxSeverity>
    <initialSeverity>1</initialSeverity>
    <isBad>false</isBad>
  </HediffDef>

  <HediffDef ParentName="PanielSynchroBase">
    <defName>Paniel_Synchro_Awful</defName>
    <label>Automaton (awful)</label>
    <description>Sync Rate</description>
    <stages>
      <li>
        <capMods>
          <li>
            <capacity>Consciousness</capacity>
            <offset>-0.30</offset>
          </li>
        </capMods>
        <statOffsets>
          <ArmorRating_Sharp>0.24</ArmorRating_Sharp>
          <ArmorRating_Blunt>0.048</ArmorRating_Blunt>
          <ArmorRating_Heat>0.06</ArmorRating_Heat>
        </statOffsets>
      </li>
    </stages>
  </HediffDef>

  <HediffDef ParentName="PanielSynchroBase">
    <defName>Paniel_Synchro_Poor</defName>
    <label>Automaton (poor)</label>
    <description>Sync Rate</description>
    <stages>
      <li>
        <capMods>
          <li>
            <capacity>Consciousness</capacity>
            <offset>-0.15</offset>
          </li>
        </capMods>
        <statOffsets>
        </statOffsets>
      </li>
    </stages>
  </HediffDef>

  <HediffDef ParentName="PanielSynchroBase">
    <defName>Paniel_Synchro_Normal</defName>
    <label>Automaton (normal)</label>
    <description>Sync Rate</description>
    <stages>
      <li>
        <capMods>
        </capMods>
        <statOffsets>
        </statOffsets>
      </li>
    </stages>
  </HediffDef>

  <HediffDef ParentName="PanielSynchroBase">
    <defName>Paniel_Synchro_Good</defName>
    <label>Automaton (good)</label>
    <description>Sync Rate</description>
    <stages>
      <li>
        <capMods>
          <li>
            <capacity>Consciousness</capacity>
            <offset>0.05</offset>
          </li>
        </capMods>
        <statOffsets>
        </statOffsets>
      </li>
    </stages>
  </HediffDef>

  <HediffDef ParentName="PanielSynchroBase">
    <defName>Paniel_Synchro_Excellent</defName>
    <label>Automaton (excellent)</label>
    <description>Sync Rate</description>
    <stages>
      <li>
        <capMods>
          <li>
            <capacity>Consciousness</capacity>
            <offset>0.10</offset>
          </li>
        </capMods>
        <statOffsets>
        </statOffsets>
      </li>
    </stages>
  </HediffDef>

  <HediffDef ParentName="PanielSynchroBase">
    <defName>Paniel_Synchro_Masterwork</defName>
    <label>Automaton (masterwork)</label>
    <description>Sync Rate</description>
    <stages>
      <li>
        <capMods>
          <li>
            <capacity>Consciousness</capacity>
            <offset>0.15</offset>
          </li>
        </capMods>
        <statOffsets>
          <MentalBreakThreshold>-0.08</MentalBreakThreshold>
        </statOffsets>
      </li>
    </stages>
  </HediffDef>

  <HediffDef ParentName="PanielSynchroBase">
    <defName>Paniel_Synchro_Legendary</defName>
    <label>Automaton (legendary)</label>
    <description>Sync Rate</description>
    <stages>
      <li>
        <capMods>
          <li>
            <capacity>Consciousness</capacity>
            <offset>0.25</offset>
          </li>
        </capMods>
        <statOffsets>
          <MentalBreakThreshold>-0.08</MentalBreakThreshold>
        </statOffsets>
      </li>
    </stages>
  </HediffDef>

  <!--==================================== 특화형 버프 ====================================-->

  <!--==================================== 오토마톤 기본 ====================================-->
  <HediffDef>
    <defName>PanielBaseHediff</defName>
    <hediffClass>HediffWithComps</hediffClass>
    <label>Automaton base</label>
    <description>This pawn is Automaton.</description>
    <defaultLabelColor>(1,1,0.5)</defaultLabelColor>
    <scenarioCanAdd>false</scenarioCanAdd>
    <maxSeverity>1</maxSeverity>
    <initialSeverity>1</initialSeverity>
    <isBad>false</isBad>
    <stages>
      <li>
        <becomeVisible>false</becomeVisible>
        <painFactor>0</painFactor>
        <foodPoisoningChanceFactor>0</foodPoisoningChanceFactor>
        <naturalHealingFactor>0</naturalHealingFactor>
      </li>
    </stages>
    <comps>
      <li Class="MoharHediffs.HediffCompProperties_HediffNullifier">
        <hediffToNullify>
          <li>Plague</li>
          <li>CryptosleepSickness</li>
          <li>Carcinoma</li>
          <li>BadBack</li>
          <li>Frail</li>
          <li>Cataract</li>
          <li>Blindness</li>
          <li>HearingLoss</li>
          <li>Asthma</li>
          <li>HeartArteryBlockage</li>
          <li>GutWorms</li>
          <li>MuscleParasites</li>
          <li>FibrousMechanites</li>
          <li>Flu</li>
          <li>Malaria</li>
          <li>SleepingSickness</li>
          <li>TraumaSavant</li>
          <li>Cirrhosis</li>
          <li>ResurrectionPsychosis</li>
          <li>Scaria</li>
          <li>FoodPoisoning</li>
          <li>ResurrectionSickness</li>
        </hediffToNullify>
        <showMessage>true</showMessage>
        <nullifyKey>PN_HediffNullifier</nullifyKey>
      </li>
    </comps>
    <modExtensions>
      <li Class="YORHG.HediffDefModExtension">
        <race>Paniel_Race</race>
      </li>
    </modExtensions>
  </HediffDef>

  <!--==================================== 오토마톤 출혈 ====================================-->
  <HediffDef>
    <defName>PN_OilLoss</defName>
    <label>oil loss</label>
    <description>...</description>
    <lethalSeverity>1</lethalSeverity>
    <stages>
      <li>
        <label>minor</label>
        <becomeVisible>false</becomeVisible>
      </li>
      <li>
        <minSeverity>0.15</minSeverity>
        <label>minor</label>
        <capMods>
          <li>
            <capacity>Moving</capacity>
            <offset>-0.1</offset>
          </li>
        </capMods>
      </li>
      <li>
        <minSeverity>0.30</minSeverity>
        <label>moderate</label>
        <capMods>
          <li>
            <capacity>Moving</capacity>
            <offset>-0.2</offset>
          </li>
        </capMods>
      </li>
      <li>
        <minSeverity>0.45</minSeverity>
        <label>severe</label>
        <capMods>
          <li>
            <capacity>Moving</capacity>
            <offset>-0.4</offset>
          </li>
        </capMods>
      </li>
      <li>
        <minSeverity>0.60</minSeverity>
        <label>extreme</label>
        <lifeThreatening>true</lifeThreatening>
        <capMods>
          <li>
            <capacity>Moving</capacity>
            <offset>-0.7</offset>
          </li>
        </capMods>
      </li>
    </stages>
  </HediffDef>

  <!--==================================== 오토마톤 과열 ====================================-->
  <HediffDef>
    <defName>PN_Overheating</defName>
    <label>overheating</label>
    <description>...</description>
    <defaultLabelColor>(0.8, 0.8, 0.35)</defaultLabelColor>
    <lethalSeverity>1</lethalSeverity>
    <taleOnVisible>HeatstrokeRevealed</taleOnVisible>
    <stages>
      <li>
        <label>initial</label>
        <becomeVisible>false</becomeVisible>
      </li>
      <li>
        <label>initial</label>
        <minSeverity>0.04</minSeverity>
        <capMods>
          <li>
            <capacity>Consciousness</capacity>
            <offset>-0.1</offset>
          </li>
        </capMods>
      </li>
      <li>
        <label>minor</label>
        <minSeverity>0.2</minSeverity>
        <capMods>
          <li>
            <capacity>Consciousness</capacity>
            <offset>-0.2</offset>
          </li>
        </capMods>
      </li>
      <li>
        <label>serious</label>
        <minSeverity>0.35</minSeverity>
        <capMods>
          <li>
            <capacity>Consciousness</capacity>
            <offset>-0.4</offset>
          </li>
        </capMods>
      </li>
      <li>
        <label>extreme</label>
        <minSeverity>0.62</minSeverity>
        <lifeThreatening>true</lifeThreatening>
        <capMods>
          <li>
            <capacity>Consciousness</capacity>
            <offset>-0.6</offset>
          </li>
        </capMods>
      </li>
    </stages>
  </HediffDef>

  <!--==================================== 오토마톤 과냉 ====================================-->
  <HediffDef>
    <defName>PN_OverCooling</defName>
    <label>overcooling</label>
    <description>...</description>
    <defaultLabelColor>(0.8, 0.8, 1)</defaultLabelColor>
    <lethalSeverity>1</lethalSeverity>
    <taleOnVisible>HypothermiaRevealed</taleOnVisible>
    <stages>
      <li>
        <label>initial</label>
        <becomeVisible>false</becomeVisible>
      </li>
      <li>
        <label>initial</label>
        <minSeverity>0.04</minSeverity>
        <capMods>
          <li>
            <capacity>Consciousness</capacity>
            <offset>-0.1</offset>
          </li>
        </capMods>
      </li>
      <li>
        <label>minor</label>
        <minSeverity>0.2</minSeverity>
        <capMods>
          <li>
            <capacity>Consciousness</capacity>
            <offset>-0.2</offset>
          </li>
        </capMods>
      </li>
      <li>
        <label>serious</label>
        <minSeverity>0.35</minSeverity>
        <capMods>
          <li>
            <capacity>Consciousness</capacity>
            <offset>-0.4</offset>
          </li>
        </capMods>
      </li>
      <li>
        <label>extreme</label>
        <minSeverity>0.62</minSeverity>
        <lifeThreatening>true</lifeThreatening>
        <capMods>
          <li>
            <capacity>Consciousness</capacity>
            <offset>-0.6</offset>
          </li>
        </capMods>
      </li>
    </stages>
  </HediffDef>
</Defs>