<?xml version="1.0" encoding="utf-8" ?>
<Defs>
  <ThingCategoryDef>
    <defName>PN_PackagedCatagory</defName>
    <label>packaged automaton</label>
    <parent>PN_AutomatonCatagory</parent>
    <iconPath>UI/Icons/ThingCategories/Manufactured</iconPath>
  </ThingCategoryDef>

  <ThingCategoryDef>
    <defName>PN_TMPackagedCatagory</defName>
    <label>PnL automaton™</label>
    <parent>PN_PackagedCatagory</parent>
    <iconPath>UI/Icons/ThingCategories/Manufactured</iconPath>
  </ThingCategoryDef>

  <ThingDef Name="BasePackagedAutomaton" Abstract="True">
    <thingClass>ThingWithComps</thingClass>
    <category>Item</category>
    <drawerType>MapMeshOnly</drawerType>
    <useHitPoints>true</useHitPoints>
    <selectable>true</selectable>
    <altitudeLayer>Item</altitudeLayer>
    <stackLimit>1</stackLimit>
    <statBases>
      <MaxHitPoints>100</MaxHitPoints>
      <Mass>80.0</Mass>
      <Flammability>0.2</Flammability>
      <WorkToMake>48000</WorkToMake>
    </statBases>
    <comps>
      <li Class="CompProperties_Forbiddable"/>
    </comps>
    <alwaysHaulable>true</alwaysHaulable>
    <drawGUIOverlay>true</drawGUIOverlay>
    <rotatable>false</rotatable>
    <pathCost>14</pathCost>
    <allowedArchonexusCount>-1</allowedArchonexusCount>
    <tradeability>Buyable</tradeability>
    <thingCategories Inherit="false">
      <li>PN_TMPackagedCatagory</li>
    </thingCategories>
    <costList>
      <Steel>75</Steel>
      <Plasteel>75</Plasteel>
      <ComponentIndustrial>4</ComponentIndustrial>
      <ComponentSpacer>4</ComponentSpacer>
      <PN_BrainCasing>1</PN_BrainCasing>
      <Leather_Automaton>50</Leather_Automaton>
      <Chemfuel>20</Chemfuel>
    </costList>
  </ThingDef>

  <!--==================================== 일반 상자 ====================================-->
  <ThingDef ParentName="BasePackagedAutomaton">
    <defName>Packaged_NormalAutomaton</defName>
    <label>packaged automaton</label>
    <description>test item</description>
    <tradeability>None</tradeability>
    <statBases>
      <MarketValue>1520</MarketValue>
    </statBases>
    <graphicData>
      <texPath>Things/Item/Special/AIPersonaCore</texPath>
      <graphicClass>Graphic_Single</graphicClass>
    </graphicData>
    <comps>
      <li>
        <compClass>CompQuality</compClass>
      </li>
      <li Class="AutomataRace.CompPropeties_AutomataDataHolder"></li>
      <li Class="CompProperties_Usable">
        <useJob>UseItem</useJob>
        <useLabel>Unpackage</useLabel>
      </li>
      <li Class="AutomataRace.CompProperties_UseEffectGenerateAutomata"></li>
      <li Class="CompProperties_UseEffect">
        <compClass>CompUseEffect_DestroySelf</compClass>
      </li>
    </comps>
    <thingCategories Inherit="false">
      <li>PN_PackagedCatagory</li>
    </thingCategories>
  </ThingDef>

  <!--고급부품4짜리-->  <!--확률:개별weight값/전체weight합-->
  <!--==================================== 전투형 일반 상자 ====================================-->
  <ThingDef ParentName="BasePackagedAutomaton">
    <defName>Packaged_NormalAutomatonSoldier</defName>
    <label>PnL automaton™ (Combat)</label>
    <description>A box containing a combat model automaton. Unpacking will reveal an automaton of a random grade.\n\n[Random Table]\nPoor : 0.39%\nNormal : 15.79%\nGood : 54.28%\nExcellent : 27.40%\nMasterwork : 2.14%</description>
    <statBases>

    </statBases>
    <graphicData>
      <texPath>Things/Item/Special/AIPersonaCore</texPath>
      <graphicClass>Graphic_Single</graphicClass>
    </graphicData>
    <comps>
      <li Class="CompProperties_Usable">
        <useJob>UseItem</useJob>
        <useLabel>Unpackage</useLabel>
      </li>
      <li Class="AutomataRace.CompProperties_UseEffectGeneratePawn">
        <samples>
          <li>
            <weight>39</weight>
            <pawnKindDefName>Paniel_Randombox_Poor</pawnKindDefName>
          </li>
          <li>
            <weight>1579</weight>
            <pawnKindDefName>Paniel_Soldier_Normal</pawnKindDefName>
          </li>
          <li>
            <weight>5428</weight>
            <pawnKindDefName>Paniel_Soldier_Good</pawnKindDefName>
          </li>
          <li>
            <weight>2740</weight>
            <pawnKindDefName>Paniel_Soldier_Excellent</pawnKindDefName>
          </li>
          <li>
            <weight>214</weight>
            <pawnKindDefName>Paniel_Soldier_Masterwork</pawnKindDefName>
          </li>
        </samples>
      </li>
      <li Class="CompProperties_UseEffect">
        <compClass>CompUseEffect_DestroySelf</compClass>
      </li>
    </comps>
  </ThingDef>

  <!--==================================== 제작형 일반 상자 ====================================-->
  <ThingDef ParentName="BasePackagedAutomaton">
    <defName>Packaged_NormalAutomatonWorker</defName>
    <label>PnL automaton™ (Engineer)</label>
    <description>A box containing a engineer model automaton. Unpacking will reveal an automaton of a random grade.\n\n[Random Table]\nPoor : 0.39%\nNormal : 15.79%\nGood : 54.28%\nExcellent : 27.40%\nMasterwork : 2.14%</description>
    <statBases>

    </statBases>
    <graphicData>
      <texPath>Things/Item/Special/AIPersonaCore</texPath>
      <graphicClass>Graphic_Single</graphicClass>
    </graphicData>
    <comps>
      <li Class="CompProperties_Usable">
        <useJob>UseItem</useJob>
        <useLabel>Unpackage</useLabel>
      </li>
      <li Class="AutomataRace.CompProperties_UseEffectGeneratePawn">
        <samples>
          <li>
            <weight>39</weight>
            <pawnKindDefName>Paniel_Randombox_Poor</pawnKindDefName>
          </li>
          <li>
            <weight>1579</weight>
            <pawnKindDefName>Paniel_Worker_Normal</pawnKindDefName>
          </li>
          <li>
            <weight>5428</weight>
            <pawnKindDefName>Paniel_Worker_Good</pawnKindDefName>
          </li>
          <li>
            <weight>3740</weight>
            <pawnKindDefName>Paniel_Worker_Excellent</pawnKindDefName>
          </li>
          <li>
            <weight>214</weight>
            <pawnKindDefName>Paniel_Worker_Masterwork</pawnKindDefName>
          </li>
        </samples>
      </li>
      <li Class="CompProperties_UseEffect">
        <compClass>CompUseEffect_DestroySelf</compClass>
      </li>
    </comps>
  </ThingDef>

  <!--==================================== 가정형 일반 상자 ====================================-->
  <ThingDef ParentName="BasePackagedAutomaton">
    <defName>Packaged_NormalAutomatonMaid</defName>
    <label>PnL automaton™ (Domestic)</label>
    <description>A box containing a domestic model automaton. Unpacking will reveal an automaton of a random grade.\n\n[Random Table]\nPoor : 0.39%\nNormal : 15.79%\nGood : 54.28%\nExcellent : 27.40%\nMasterwork : 2.14%</description>
    <statBases>

    </statBases>
    <graphicData>
      <texPath>Things/Item/Special/AIPersonaCore</texPath>
      <graphicClass>Graphic_Single</graphicClass>
    </graphicData>
    <comps>
      <li Class="CompProperties_Usable">
        <useJob>UseItem</useJob>
        <useLabel>Unpackage</useLabel>
      </li>
      <li Class="AutomataRace.CompProperties_UseEffectGeneratePawn">
        <samples>
          <li>
            <weight>39</weight>
            <pawnKindDefName>Paniel_Randombox_Poor</pawnKindDefName>
          </li>
          <li>
            <weight>1579</weight>
            <pawnKindDefName>Paniel_Maid_Normal</pawnKindDefName>
          </li>
          <li>
            <weight>5428</weight>
            <pawnKindDefName>Paniel_Maid_Good</pawnKindDefName>
          </li>
          <li>
            <weight>2740</weight>
            <pawnKindDefName>Paniel_Maid_Excellent</pawnKindDefName>
          </li>
          <li>
            <weight>214</weight>
            <pawnKindDefName>Paniel_Maid_Masterwork</pawnKindDefName>
          </li>
        </samples>
      </li>
      <li Class="CompProperties_UseEffect">
        <compClass>CompUseEffect_DestroySelf</compClass>
      </li>
    </comps>
  </ThingDef>
</Defs>