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

  <!--본사(히든)-->
  <FactionDef ParentName="FactionBase">
    <defName>PN_indistryFaction</defName>
    <label>PnL Industry</label>
    <pawnSingular>Automaton</pawnSingular>
    <pawnsPlural>Automata</pawnsPlural>
    <requiredCountAtGameStart>1</requiredCountAtGameStart>
    <fixedName>PnL Industry</fixedName>
    <factionIconPath>Icon/Paniel_PlayerIcon</factionIconPath>
    <hidden>true</hidden>
    <autoFlee>false</autoFlee>
    <techLevel>Spacer</techLevel>
    <rescueesCanJoin>false</rescueesCanJoin>
    <backstoryCategories>
      <li>Offworld</li>
    </backstoryCategories>
    <allowedCultures>
      <li>PN_PnLindistryCulture</li>
    </allowedCultures>
    <allowedMemes>
      <li MayRequire="Ludeon.RimWorld.Ideology">PN_Structure</li>
      <li MayRequire="Ludeon.RimWorld.Ideology">Loyalist</li>
      <li MayRequire="Ludeon.RimWorld.Ideology">Collectivist</li>
      <li MayRequire="Ludeon.RimWorld.Ideology">Transhumanist</li>
      <li MayRequire="Ludeon.RimWorld.Ideology">HumanPrimacy</li>
    </allowedMemes>
    <requiredMemes>
      <li MayRequire="Ludeon.RimWorld.Ideology">PN_Structure</li>
      <li MayRequire="Ludeon.RimWorld.Ideology">Loyalist</li>
      <li MayRequire="Ludeon.RimWorld.Ideology">Collectivist</li>
      <li MayRequire="Ludeon.RimWorld.Ideology">Transhumanist</li>
      <li MayRequire="Ludeon.RimWorld.Ideology">HumanPrimacy</li>
    </requiredMemes>
    <disallowedPrecepts>
      <li MayRequire="Ludeon.RimWorld.Ideology">ApparelDesired_Strong_Subordinate</li>
      <li MayRequire="Ludeon.RimWorld.Ideology">ApparelDesired_Soft_Subordinate</li>
    </disallowedPrecepts>
  </FactionDef>

  <!--행성지부(NPC)-->
  <FactionDef ParentName="FactionBase">
    <defName>PN_SubsidiaryFaction</defName>
    <label>PnL Subsidiary Company</label>
    <pawnSingular>Employee</pawnSingular>
    <pawnsPlural>Employees</pawnsPlural>
    <listOrderPriority>50</listOrderPriority>
    <settlementGenerationWeight>0.20</settlementGenerationWeight>
    <requiredCountAtGameStart>1</requiredCountAtGameStart>
    <maxCountAtGameStart>1</maxCountAtGameStart>
    <canMakeRandomly>true</canMakeRandomly>
    <canSiege>true</canSiege>
    <canStageAttacks>true</canStageAttacks>
    <leaderTitle>CEO</leaderTitle>
    <factionIconPath>Icon/Paniel_PlayerIcon</factionIconPath>
    <colorSpectrum>
      <li>(1, 1, 1)</li>
      <li>(1, 1, 1)</li>
    </colorSpectrum>
    <classicIdeo>false</classicIdeo>
    <maxConfigurableAtWorldCreation>9999</maxConfigurableAtWorldCreation>
    <configurationListOrderPriority>50</configurationListOrderPriority>
    <techLevel>Spacer</techLevel>
    <fixedName>PnL Logistics</fixedName>
    <settlementNameMaker>NamerSettlementPnLSub</settlementNameMaker>
    <allowedCultures>
      <li>PN_PnLindistryCulture</li>
    </allowedCultures>
    <allowedMemes>
      <li MayRequire="Ludeon.RimWorld.Ideology">PN_Structure</li>
      <li MayRequire="Ludeon.RimWorld.Ideology">Loyalist</li>
      <li MayRequire="Ludeon.RimWorld.Ideology">Collectivist</li>
      <li MayRequire="Ludeon.RimWorld.Ideology">Transhumanist</li>
      <li MayRequire="Ludeon.RimWorld.Ideology">HumanPrimacy</li>
    </allowedMemes>
    <requiredMemes>
      <li MayRequire="Ludeon.RimWorld.Ideology">PN_Structure</li>
      <li MayRequire="Ludeon.RimWorld.Ideology">Loyalist</li>
      <li MayRequire="Ludeon.RimWorld.Ideology">Collectivist</li>
      <li MayRequire="Ludeon.RimWorld.Ideology">Transhumanist</li>
      <li MayRequire="Ludeon.RimWorld.Ideology">HumanPrimacy</li>
    </requiredMemes>
    <disallowedPrecepts>
      <li MayRequire="Ludeon.RimWorld.Ideology">ApparelDesired_Strong_Subordinate</li>
      <li MayRequire="Ludeon.RimWorld.Ideology">ApparelDesired_Soft_Subordinate</li>
    </disallowedPrecepts>
    <backstoryCategories>
      <li>Offworld</li>
    </backstoryCategories>
    <geneticVariance>0.8</geneticVariance>
    <caravanTraderKinds>
      <li>PN_Caravan_PnLindustry</li>
    </caravanTraderKinds>
    <visitorTraderKinds>
    </visitorTraderKinds>
    <baseTraderKinds>
      <li>Base_Outlander_Standard</li>
    </baseTraderKinds>
    <allowedArrivalTemperatureRange>-40~45</allowedArrivalTemperatureRange>
    <raidLootMaker>PN_SubsidiaryRaidLootMaker</raidLootMaker>
    <maxPawnCostPerTotalPointsCurve>
      <points>
        <li>(0,35)</li>
        <li>(70, 50)</li>
        <li>(700, 100)</li>
        <li>(1300, 150)</li>
        <li>(100000, 10000)</li>
      </points>
    </maxPawnCostPerTotalPointsCurve>
    <raidCommonalityFromPointsCurve>
      <points>
        <li>(0, 0)</li>
      </points>
    </raidCommonalityFromPointsCurve>
    <pawnGroupMakers>

      <!--
      <PN_EmployeeH></PN_EmployeeH>
      <PN_EmployeeP_EngineerA></PN_EmployeeP_EngineerA>
      <PN_EmployeeP_EngineerB></PN_EmployeeP_EngineerB>
      <PN_EmployeeP_DomesticA></PN_EmployeeP_DomesticA>
      <PN_EmployeeP_DomesticB></PN_EmployeeP_DomesticB>

      <PN_ManagerH></PN_ManagerH>
      <PN_ManageUnit_Enginer></PN_ManageUnit_Enginer>
      <PN_ManageUnit_Domestic></PN_ManageUnit_Domestic>

      <PN_Director></PN_Director>

      <PN_SecurityUnit></PN_SecurityUnit>

      <PN_GrenadeUnit_Destructive></PN_GrenadeUnit_Destructive>
      <PN_GrenadeUnit_EMP></PN_GrenadeUnit_EMP>
      <PN_GrenadeUnit_Smoke></PN_GrenadeUnit_Smoke>

      <PN_Mid_ClosetUnit></PN_Mid_ClosetUnit>
      <PN_Mid_RangeUnit></PN_Mid_RangeUnit>

      <PN_EliteCloseUnit></PN_EliteCloseUnit>
      <PN_EliteRangeUnit></PN_EliteRangeUnit>
      <PN_EliteHeavyUnit></PN_EliteHeavyUnit>
      <PN_EliteCannonUnit></PN_EliteCannonUnit>
      -->

      <li>
        <kindDef>Trader</kindDef>
        <traders>
          <PN_ManagerH>1</PN_ManagerH>
        </traders>
        <carriers>
          <Muffalo>6</Muffalo>
          <Dromedary>5</Dromedary>
          <Alpaca>2</Alpaca>
          <Elephant>1</Elephant>
        </carriers>
        <guards>
          <PN_EmployeeH>6</PN_EmployeeH>
          <PN_EmployeeP_EngineerA>1</PN_EmployeeP_EngineerA>
          <PN_EmployeeP_EngineerB>1</PN_EmployeeP_EngineerB>
          <PN_EmployeeP_DomesticA>1</PN_EmployeeP_DomesticA>
          <PN_EmployeeP_DomesticB>1</PN_EmployeeP_DomesticB>

          <PN_GrenadeUnit_Destructive>1.5</PN_GrenadeUnit_Destructive>

          <Mercenary_Slasher>4</Mercenary_Slasher>
          <Mercenary_Gunner>6</Mercenary_Gunner>
          <PN_Mid_ClosetUnit>3</PN_Mid_ClosetUnit>
          <PN_Mid_RangeUnit>4</PN_Mid_RangeUnit>

          <Mercenary_Elite>6</Mercenary_Elite>
          <PN_EliteRangeUnit>4</PN_EliteRangeUnit>
        </guards>
      </li>

      <li>
        <kindDef>Trader</kindDef>
        <traders>
          <PN_ManageUnit_Domestic>1</PN_ManageUnit_Domestic>
        </traders>
        <carriers>
          <Muffalo>6</Muffalo>
          <Dromedary>5</Dromedary>
          <Alpaca>2</Alpaca>
          <Elephant>1</Elephant>
        </carriers>
        <guards>
          <PN_EmployeeH>6</PN_EmployeeH>
          <PN_EmployeeP_EngineerA>1</PN_EmployeeP_EngineerA>
          <PN_EmployeeP_EngineerB>1</PN_EmployeeP_EngineerB>
          <PN_EmployeeP_DomesticA>1</PN_EmployeeP_DomesticA>
          <PN_EmployeeP_DomesticB>1</PN_EmployeeP_DomesticB>

          <PN_GrenadeUnit_Destructive>1.5</PN_GrenadeUnit_Destructive>

          <Mercenary_Slasher>4</Mercenary_Slasher>
          <Mercenary_Gunner>6</Mercenary_Gunner>
          <PN_Mid_ClosetUnit>3</PN_Mid_ClosetUnit>
          <PN_Mid_RangeUnit>4</PN_Mid_RangeUnit>

          <Mercenary_Elite>6</Mercenary_Elite>
          <PN_EliteRangeUnit>4</PN_EliteRangeUnit>
        </guards>
      </li>

      <li>
        <kindDef>Settlement</kindDef>
        <options>
          <PN_EmployeeH>12</PN_EmployeeH>
          <PN_EmployeeP_EngineerA>3</PN_EmployeeP_EngineerA>
          <PN_EmployeeP_EngineerB>3</PN_EmployeeP_EngineerB>
          <PN_EmployeeP_DomesticA>3</PN_EmployeeP_DomesticA>
          <PN_EmployeeP_DomesticB>3</PN_EmployeeP_DomesticB>

          <PN_ManagerH>3</PN_ManagerH>
          <PN_ManageUnit_Enginer>3</PN_ManageUnit_Enginer>
          <PN_ManageUnit_Domestic>3</PN_ManageUnit_Domestic>

          <PN_Director>3</PN_Director>

          <PN_SecurityUnit>6</PN_SecurityUnit>

          <PN_GrenadeUnit_Destructive>2</PN_GrenadeUnit_Destructive>

          <Mercenary_Slasher>4</Mercenary_Slasher>
          <Mercenary_Gunner>6</Mercenary_Gunner>
          <PN_Mid_ClosetUnit>2</PN_Mid_ClosetUnit>
          <PN_Mid_RangeUnit>4</PN_Mid_RangeUnit>

          <Mercenary_Elite>6</Mercenary_Elite>
          <PN_EliteRangeUnit>2</PN_EliteRangeUnit>
          <PN_EliteHeavyUnit>2</PN_EliteHeavyUnit>
          <PN_EliteCannonUnit>2</PN_EliteCannonUnit>
        </options>
      </li>

      <li>
        <kindDef>Peaceful</kindDef>
        <options>
          <PN_EmployeeH>10</PN_EmployeeH>
          <PN_EmployeeP_EngineerA>2</PN_EmployeeP_EngineerA>
          <PN_EmployeeP_EngineerB>1</PN_EmployeeP_EngineerB>
          <PN_EmployeeP_DomesticA>2</PN_EmployeeP_DomesticA>
          <PN_EmployeeP_DomesticB>1</PN_EmployeeP_DomesticB>

          <PN_ManagerH>1</PN_ManagerH>
          <PN_ManageUnit_Enginer>1</PN_ManageUnit_Enginer>
          <PN_ManageUnit_Domestic>1</PN_ManageUnit_Domestic>

          <PN_Director>1</PN_Director>

          <PN_SecurityUnit>10</PN_SecurityUnit>
        </options>
      </li>

      <!--Combat-->

      <!--Mercenary team-->

      <li>
        <kindDef>Combat</kindDef>
        <commonality>100</commonality>
        <options>
          <Drifter>10</Drifter>
          <Thrasher>3</Thrasher>
          <Scavenger>10</Scavenger>
          <Pirate>10</Pirate>
          <Grenadier_EMP>0.25</Grenadier_EMP>
          <Grenadier_Smoke>0.25</Grenadier_Smoke>
          <Grenadier_Destructive>2</Grenadier_Destructive>
          <Mercenary_Gunner>10</Mercenary_Gunner>
          <Mercenary_Heavy>6</Mercenary_Heavy>
          <Mercenary_Slasher>3</Mercenary_Slasher>
          <Mercenary_Sniper>7</Mercenary_Sniper>
          <Mercenary_Elite>10</Mercenary_Elite>
          <PN_Director>1</PN_Director>
        </options>
      </li>

      <!--Paniel security team-->

      <li>
        <kindDef>Combat</kindDef>
        <commonality>60</commonality>
        <options>
          <PN_SecurityUnit>8</PN_SecurityUnit>
          <PN_GrenadeUnit_EMP>0.25</PN_GrenadeUnit_EMP>
          <PN_GrenadeUnit_Smoke>0.25</PN_GrenadeUnit_Smoke>
          <PN_GrenadeUnit_Destructive>2</PN_GrenadeUnit_Destructive>
          <PN_Mid_ClosetUnit>2</PN_Mid_ClosetUnit>
          <PN_Mid_RangeUnit>4</PN_Mid_RangeUnit>
          <PN_EliteCloseUnit>1</PN_EliteCloseUnit>
          <PN_EliteRangeUnit>2</PN_EliteRangeUnit>
          <PN_EliteHeavyUnit>1</PN_EliteHeavyUnit>
          <PN_EliteCannonUnit>1</PN_EliteCannonUnit>
          <PN_Director>1</PN_Director>
        </options>
      </li>



    </pawnGroupMakers>
    <settlementTexturePath>Icon/Paniel_PlayerIcon</settlementTexturePath>
  </FactionDef>

  <ThingSetMakerDef>
    <defName>PN_SubsidiaryRaidLootMaker</defName>
    <root Class="ThingSetMaker_MarketValue">
      <fixedParams>
        <filter>
          <thingDefs>
            <li>Silver</li>
            <li>MedicineIndustrial</li>
            <li>ComponentIndustrial</li>
            <li>MealSurvivalPack</li>
            <li>Neutroamine</li>
          </thingDefs>
        </filter>
      </fixedParams>
    </root>
  </ThingSetMakerDef>

  <RulePackDef>
    <defName>NamerSettlementPnLSub</defName>
    <include>
      <li>PN_NamerUtility</li>
    </include>
    <rulePack>
      <rulesStrings>
        <li>r_name->[PNAZ][PN09][PN09] logistics center</li>
      </rulesStrings>
    </rulePack>
  </RulePackDef>

  <CultureDef>
    <defName>PN_PnLindistryCulture</defName>
    <label>PnL indistry</label>
    <description>...</description>
    <ideoNameMaker MayRequire="Ludeon.RimWorld.Ideology">NamerIdeo_PnLindistry</ideoNameMaker>
    <deityNameMaker MayRequire="Ludeon.RimWorld.Ideology">NamerDeity_PnLindistry</deityNameMaker>
    <deityTypeMaker MayRequire="Ludeon.RimWorld.Ideology">DeityTypeMaker_PnLindistry</deityTypeMaker>
    <leaderTitleMaker MayRequire="Ludeon.RimWorld.Ideology">LeaderTitleMaker_PnLindistry</leaderTitleMaker>
    <festivalNameMaker MayRequire="Ludeon.RimWorld.Ideology">NamerFestivalAstropolitan</festivalNameMaker>
    <allowedPlaceTags>
      <li>OriginSpacer</li>
    </allowedPlaceTags>
    <iconPath>Icon/Paniel_PlayerIcon</iconPath>
    <iconColor>(1, 1, 1)</iconColor>
    <styleItemTags>
      <li>
        <tag>Urban</tag>
        <baseWeight>1</baseWeight>
        <weightFactor>1</weightFactor>
      </li>
      <li>
        <tag>NoBeard</tag>
        <baseWeight>1</baseWeight>
        <weightFactor>1</weightFactor>
      </li>
      <li>
        <tag>NoTattoo</tag>
        <baseWeight>1</baseWeight>
        <weightFactor>1</weightFactor>
      </li>
    </styleItemTags>
  </CultureDef>

  <RulePackDef>
    <defName>NamerIdeo_PnLindistry</defName>
    <rulePack>
      <rulesStrings>
        <li>r_ideoName->PnL bylaws</li>
        <li>r_ideoAdjective->PnL</li>
        <li>r_memberName->PnL Employee</li>
      </rulesStrings>
    </rulePack>
  </RulePackDef>

  <RulePackDef>
    <defName>NamerDeity_PnLindistry</defName>
    <rulePack>
      <rulesStrings>
        <li>r_deityName->PnL</li>
      </rulesStrings>
    </rulePack>
  </RulePackDef>

  <RulePackDef>
    <defName>DeityTypeMaker_PnLindistry</defName>
    <rulePack>
      <rulesStrings>
        <li>r_deityType->God of Capitalism</li>
      </rulesStrings>
    </rulePack>
  </RulePackDef>

  <RulePackDef>
    <defName>LeaderTitleMaker_PnLindistry</defName>
    <rulePack>
      <rulesStrings>
        <li>r_leaderTitle->CEO</li>
      </rulesStrings>
    </rulePack>
  </RulePackDef>
</Defs>