<?xml version="1.0" encoding="utf-8" ?>
<Patch>
  <Operation Class="PatchOperationFindMod">
    <mods>
      <li>Royalty</li>
    </mods>
    <match Class="PatchOperationSequence">
      <success>Always</success>
      <operations>
        <!-- 오토마톤 면역 -->
        <li Class="PatchOperationAdd">
          <xpath>/Defs/HediffDef[defName = "PanielBaseHediff"]/comps/li[@Class = "MoharHediffs.HediffCompProperties_HediffNullifier"]/hediffToNullify</xpath>
          <value>
            <li>BloodRot</li>
            <li>Abasia</li>
            <li>PsychicLove</li>
            <li>Joyfuzz</li>
          </value>
        </li>
        <!-- 제국 우호도 -->
        <li Class="PatchOperationAdd">
          <xpath>/Defs/FactionDef[defName = "Empire"]/permanentEnemyToEveryoneExcept</xpath>
          <value>
            <li>Paniel_PlayerFaction</li>
          </value>
        </li>
        <!-- 연구 -->
        <li Class="PatchOperationReplace">
          <xpath>/Defs/ResearchProjectDef[defName = "PNRP_TierC_Apparel"]/baseCost</xpath>
          <value>
            <baseCost>500</baseCost>
          </value>
        </li>
        <li Class="PatchOperationReplace">
          <xpath>/Defs/ResearchProjectDef[defName = "PNRP_TierC_Apparel"]/prerequisites</xpath>
          <value>
            <prerequisites>
              <li>PNRP_TierB_Apparel</li>
              <li>CataphractArmor</li>
            </prerequisites>
          </value>
        </li>
        <!--상선청사진-->
        <li Class="PatchOperationAdd">
          <xpath>/Defs/TraderKindDef[defName = "PN_Orbital_PnLindustry"]/stockGenerators</xpath>
          <value>
            <li Class="StockGenerator_SingleDef">
              <thingDef>Techprint_CataphractArmor</thingDef>
              <countRange>-2~1</countRange>
            </li>
            <li Class="StockGenerator_SingleDef">
              <thingDef>Techprint_BrainWiring</thingDef>
              <countRange>-2~1</countRange>
            </li>
          </value>
        </li>
      </operations>
    </match>
  </Operation>
</Patch>