<?xml version="1.0" encoding="utf-8" ?>
<Defs>
  <!--==================================== 베이스 ====================================-->
  <HediffDef Name="PN_ImplantHediffBase" Abstract="True">
    <hediffClass>Hediff_Implant</hediffClass>
    <defaultLabelColor>(0.6, 0.6, 1.0)</defaultLabelColor>
    <isBad>false</isBad>
    <priceImpact>true</priceImpact>
    <countsAsAddedPartOrImplant>true</countsAsAddedPartOrImplant>
  </HediffDef>

  <HediffDef Name="PN_AddedBodyPartBase" ParentName="PN_ImplantHediffBase" Abstract="True">
    <hediffClass>Hediff_AddedPart</hediffClass>
    <priceImpact>true</priceImpact>
  </HediffDef>

  <ThingCategoryDef>
    <defName>PN_BodyPartsAutomaton</defName>
    <label>Automaton</label>
    <parent>BodyParts</parent>
  </ThingCategoryDef>

  <ThingDef Name="PN_BodyPartBase" Abstract="True">
    <thingClass>ThingWithComps</thingClass>
    <category>Item</category>
    <useHitPoints>true</useHitPoints>
    <selectable>true</selectable>
    <altitudeLayer>Item</altitudeLayer>
    <tickerType>Never</tickerType>
    <alwaysHaulable>true</alwaysHaulable>
    <isTechHediff>true</isTechHediff>
    <pathCost>14</pathCost>
    <statBases>
      <MaxHitPoints>50</MaxHitPoints>
      <Flammability>0.7</Flammability>
      <Beauty>-4</Beauty>
      <DeteriorationRate>2.0</DeteriorationRate>
      <Mass>1</Mass>
    </statBases>
    <tradeTags>
      <li>PN_BodyParts</li>
    </tradeTags>
    <comps>
      <li Class="CompProperties_Forbiddable"/>
    </comps>
  </ThingDef>

  <ThingDef Name="PN_BodyPartNormalBase" ParentName="PN_BodyPartBase" Abstract="True">
    <techLevel>Industrial</techLevel>
    <thingCategories>
      <li>PN_BodyPartsAutomaton</li>
    </thingCategories>
    <graphicData>
      <texPath>Things/Item/Health/HealthItem</texPath>
      <graphicClass>Graphic_Single</graphicClass>
      <drawSize>0.80</drawSize>
      <color>(154,124,104)</color>
    </graphicData>
    <tradeTags>
      <li>PN_BodyPartsNormal</li>
    </tradeTags>
    <statBases>
      <WorkToMake>15000</WorkToMake>
    </statBases>
    <recipeMaker>
      <workSpeedStat>GeneralLaborSpeed</workSpeedStat>
      <workSkill>Crafting</workSkill>
      <effectWorking>Smith</effectWorking>
      <soundWorking>Recipe_Smith</soundWorking>
      <unfinishedThingDef>UnfinishedHealthItemProsthetic</unfinishedThingDef>
      <skillRequirements>
        <Crafting>5</Crafting>
      </skillRequirements>
      <!--<researchPrerequisite>Prosthetics</researchPrerequisite>-->
      <recipeUsers>
        <li>TableMachining</li>
      </recipeUsers>
    </recipeMaker>
  </ThingDef>

  <ThingDef Name="PN_BodyPartRoyalBase" ParentName="PN_BodyPartBase" Abstract="True">
    <techLevel>Spacer</techLevel>
    <thingCategories>
      <li>PN_BodyPartsAutomaton</li>
    </thingCategories>
    <graphicData>
      <texPath>Things/Item/Health/HealthItem</texPath>
      <graphicClass>Graphic_Single</graphicClass>
      <drawSize>0.80</drawSize>
      <color>(189,169,118)</color>
    </graphicData>
    <tradeTags>
      <li>PN_BodyPartsRoyal</li>
    </tradeTags>
    <statBases>
      <WorkToMake>26000</WorkToMake>
    </statBases>
    <recipeMaker>
      <workSpeedStat>GeneralLaborSpeed</workSpeedStat>
      <workSkill>Crafting</workSkill>
      <effectWorking>Smith</effectWorking>
      <soundWorking>Recipe_Smith</soundWorking>
      <unfinishedThingDef>UnfinishedHealthItemBionic</unfinishedThingDef>
      <skillRequirements>
        <Crafting>8</Crafting>
      </skillRequirements>
      <!--<researchPrerequisite>Bionics</researchPrerequisite>-->
      <recipeUsers>
        <li>FabricationBench</li>
      </recipeUsers>
    </recipeMaker>
  </ThingDef>

  <RecipeDef Name="PN_SurgeryInstallImplantBase" ParentName="PN_Surgery" Abstract="True">
    <workerClass>Recipe_InstallImplant</workerClass>
    <workAmount>2500</workAmount>
    <skillRequirements>
      <Medicine>5</Medicine>
    </skillRequirements>
    <recipeUsers>
      <li>Paniel_Race</li>
    </recipeUsers>
  </RecipeDef>

  <RecipeDef Name="PN_SurgeryInstallBodyPartArtificialBase" ParentName="PN_SurgeryInstallImplantBase" Abstract="True">
    <workerClass>Recipe_InstallArtificialBodyPart</workerClass>
  </RecipeDef>

  <RecipeDef Name="PN_SurgeryRemoveImplantBase" ParentName="PN_Surgery" Abstract="True">
    <workerClass>Recipe_RemoveImplant</workerClass>
    <workAmount>2500</workAmount>
    <isViolation>true</isViolation>
    <skillRequirements>
      <Medicine>5</Medicine>
    </skillRequirements>
    <recipeUsers>
      <li>Paniel_Race</li>
    </recipeUsers>
  </RecipeDef>

  <!--==================================== 부활 모듈 ====================================-->
  <HediffDef ParentName="PN_ImplantHediffBase">
    <defName>PN_ResurrectModule</defName>
    <label>resurrect module</label>
    <labelNoun>a resurrect module</labelNoun>
    <description>An installed resurrect module.</description>
    <descriptionHyperlinks>
      <ThingDef>PN_ResurrectModule</ThingDef>
    </descriptionHyperlinks>
    <stages>

    </stages>
    <spawnThingOnRemoved>PN_ResurrectModule</spawnThingOnRemoved>
  </HediffDef>

  <ThingDef ParentName="PN_BodyPartNormalBase">
    <defName>PN_ResurrectModule</defName>
    <label>automaton resurrect module</label>
    <description>...</description>
    <descriptionHyperlinks>
      <RecipeDef>PN_InstallResurrectModule</RecipeDef>
    </descriptionHyperlinks>
    <costList>
      <ComponentIndustrial>1</ComponentIndustrial>
      <MechSerumResurrector>1</MechSerumResurrector>
    </costList>
    <statBases>
      <Mass>0.3</Mass>
    </statBases>
  </ThingDef>

  <RecipeDef ParentName="PN_SurgeryInstallImplantBase">
    <defName>PN_InstallResurrectModule</defName>
    <label>install resurrect module</label>
    <description>Install a resurrect module.</description>
    <descriptionHyperlinks>
      <ThingDef>PN_ResurrectModule</ThingDef>
      <HediffDef>PN_ResurrectModule</HediffDef>
    </descriptionHyperlinks>
    <jobString>Installing resurrect module.</jobString>
    <ingredients>
      <li>
        <filter>
          <thingDefs>
            <li>PN_ResurrectModule</li>
          </thingDefs>
        </filter>
        <count>1</count>
      </li>
    </ingredients>
    <fixedIngredientFilter>
      <thingDefs>
        <li>PN_ResurrectModule</li>
      </thingDefs>
    </fixedIngredientFilter>
    <appliedOnFixedBodyParts>
      <li>PNCore</li>
    </appliedOnFixedBodyParts>
    <addsHediff>PN_ResurrectModule</addsHediff>
  </RecipeDef>

  <RecipeDef ParentName="PN_SurgeryRemoveImplantBase">
    <defName>PN_RemoveResurrectModule</defName>
    <label>remove resurrect module</label>
    <description>Remove the resurrect module.</description>
    <descriptionHyperlinks>
      <ThingDef>PN_ResurrectModule</ThingDef>
      <HediffDef>PN_ResurrectModule</HediffDef>
    </descriptionHyperlinks>
    <jobString>Removing resurrect module.</jobString>
    <removesHediff>PN_ResurrectModule</removesHediff>
  </RecipeDef>

  <!--==================================== 생체 공학 ====================================-->
</Defs>