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

  <!--==================================== 베이스 ====================================-->

  <RulePackDef>
    <defName>PN_NamerChainSwordfirst</defName>
    <rulePack>
      <rulesFiles>
        <li>PNof->Names/Weapon/PNof</li>
        <li>PNChainSword->Names/Weapon/PNChainSword</li>
      </rulesFiles>
    </rulePack>
  </RulePackDef>

  <RulePackDef>
    <defName>PN_NamerChainSword</defName>
    <include>
      <li>PN_NamerFirst</li>
      <li>PN_NamerChainSwordfirst</li>
    </include>
    <rulePack>
      <rulesStrings>
        <li>r_weapon_name->[PNChainSword] [PNof] [PNFirstNamer]</li>
      </rulesStrings>
    </rulePack>
  </RulePackDef>

  <ThingDef Abstract="True" Name="PN_MeleeWeaponUltratech" ParentName="PN_BaseWeapon">
    <techLevel>Ultra</techLevel>
    <statBases>
      <MarketValue>2000</MarketValue>
      <Mass>2</Mass>
    </statBases>
    <comps>
      <li>
        <compClass>CompQuality</compClass>
      </li>
      <li Class="CompProperties_Art">
        <nameMaker>NamerArtWeaponMelee</nameMaker>
        <descriptionMaker>ArtDescription_WeaponMelee</descriptionMaker>
        <minQualityForArtistic>Excellent</minQualityForArtistic>
      </li>
      <li Class="CompProperties_Biocodable"/>
    </comps>
    <smeltable>true</smeltable>
    <burnableByRecipe>true</burnableByRecipe>
    <thingCategories>
      <li>WeaponsMelee</li>
    </thingCategories>
    <weaponTags>
      <li>PN_UltratechMelee</li>
    </weaponTags>
    <weaponClasses>
      <li>Melee</li>
      <li>Ultratech</li>
    </weaponClasses>
    <thingSetMakerTags>

    </thingSetMakerTags>
  </ThingDef>

  <ThingDef Name="PN_BaseWeapon_Bladelink" ParentName="PN_BaseWeapon" Abstract="True">
    <techLevel>Ultra</techLevel>
    <tradeNeverStack>true</tradeNeverStack>
    <relicChance>1</relicChance>
    <weaponTags>
      <li>PN_Bladelink</li>
    </weaponTags>
    <weaponClasses>
      <li>Ultratech</li>
    </weaponClasses>
    <comps>
      <li>
        <compClass>CompQuality</compClass>
      </li>
      <li Class="CompProperties_BladelinkWeapon">
        <biocodeOnEquip>true</biocodeOnEquip>
      </li>
      <li Class="CompProperties_Styleable"></li>
    </comps>
    <smeltable>true</smeltable>
    <burnableByRecipe>true</burnableByRecipe>
    <thingCategories>
      <li>WeaponsMeleeBladelink</li>
    </thingCategories>
    <thingSetMakerTags>

    </thingSetMakerTags>
  </ThingDef>

  <!--==================================== 로열세이버 ====================================-->

  <ThingDef ParentName="PN_BaseWeapon_Bladelink">
    <defName>PN_RoyalSaber_Bladelink</defName>
    <label>PnL royal saber</label>
    <description>[caution] : Automaton exclusive weapon.\n\nA sword that uses the Royal Guard Automaton. It can cut anything with its sharp cutting power. It also uses the power of the automaton to inflict additional burn damage with the heated blade.\nThis weapon has an onboard persona that can bond to only a single person. The wielder and intelligent weapon can synchronize their reflexes and attack with frightening speed, accuracy, and creativity. Once bonded to a wielder, the weapon's persona will refuse to be wielded by anyone else.</description>
    <statBases>
      <MarketValue>3000</MarketValue>
      <Mass>2</Mass>
    </statBases>
    <equippedAngleOffset>0</equippedAngleOffset>
    <graphicData>
      <graphicClass>Graphic_Single</graphicClass>
      <texPath>Things/Weapons/PNRoyalSaber</texPath>
      <color>(255,255,255)</color>
    </graphicData>
    <soundInteract>Interact_BladelinkPlasmaSword</soundInteract>
    <meleeHitSound>MeleeHit_BladelinkPlasmaSword</meleeHitSound>
    <weaponClasses>
      <li>Melee</li>
      <li>MeleePiercer</li>
    </weaponClasses>
    <tools>
      <li>
        <label>handle</label>
        <capacities>
          <li>Blunt</li>
        </capacities>
        <power>12</power>
        <cooldownTime>1.6</cooldownTime>
      </li>
      <li>
        <label>point</label>
        <capacities>
          <li>Stab</li>
        </capacities>
        <power>24</power>
        <cooldownTime>1.6</cooldownTime>
        <armorPenetration>0.9</armorPenetration>
        <extraMeleeDamages>
          <li>
            <def>Burn</def>
            <amount>20</amount>
            <chance>1.0</chance>
          </li>
        </extraMeleeDamages>
      </li>
      <li>
        <label>edge</label>
        <capacities>
          <li>Cut</li>
        </capacities>
        <power>24</power>
        <cooldownTime>1.6</cooldownTime>
        <armorPenetration>0.9</armorPenetration>
        <extraMeleeDamages>
          <li>
            <def>Burn</def>
            <amount>20</amount>
            <chance>1.0</chance>
          </li>
        </extraMeleeDamages>
      </li>
    </tools>
  </ThingDef>

  <!--==================================== 블러디드 체인소드 ====================================-->

  <ThingDef ParentName="PN_BaseWeapon_Bladelink">
    <defName>PN_Chainsword_Bladelink</defName>
    <label>PnL blooded chain sword</label>
    <description>[caution] : Automaton exclusive weapon.\n\nA bloody chain sword that seems to have many stories. For some reason, it has a much better performance than a normal chain sword.\nThis weapon has an onboard persona that can bond to only a single person. The wielder and intelligent weapon can synchronize their reflexes and attack with frightening speed, accuracy, and creativity. Once bonded to a wielder, the weapon's persona will refuse to be wielded by anyone else.</description>
    <statBases>
      <MarketValue>3000</MarketValue>
      <Mass>2</Mass>
    </statBases>
    <equippedAngleOffset>-65</equippedAngleOffset>
    <graphicData>
      <graphicClass>Graphic_Single</graphicClass>
      <texPath>Things/Weapons/PNSwordLink</texPath>
      <color>(255,255,255)</color>
    </graphicData>
    <soundInteract>Interact_BladelinkMonoSword</soundInteract>
    <meleeHitSound>PNChainswordSound</meleeHitSound>
    <weaponClasses>
      <li>Melee</li>
      <li>MeleePiercer</li>
    </weaponClasses>
    <tools>
      <li>
        <label>handle</label>
        <capacities>
          <li>Blunt</li>
        </capacities>
        <power>12</power>
        <cooldownTime>1.6</cooldownTime>
      </li>
      <li>
        <label>point</label>
        <capacities>
          <li>Stab</li>
        </capacities>
        <power>28</power>
        <cooldownTime>1.6</cooldownTime>
        <armorPenetration>0.9</armorPenetration>
      </li>
      <li>
        <label>edge</label>
        <capacities>
          <li>Cut</li>
        </capacities>
        <power>28</power>
        <cooldownTime>1.6</cooldownTime>
        <armorPenetration>0.9</armorPenetration>
      </li>
    </tools>
    <comps>
      <li Class="CompProperties_GeneratedName">
        <nameMaker>PN_NamerChainSword</nameMaker>
      </li>
    </comps>
  </ThingDef>

  <!--==================================== 로열해머 ====================================-->

  <ThingDef ParentName="PN_BaseWeapon_Bladelink">
    <defName>PN_RoyalHammer_Bladelink</defName>
    <label>PnL royal Hammer</label>
    <description>...</description>
    <statBases>
      <MarketValue>3000</MarketValue>
      <Mass>4</Mass>
    </statBases>
    <equippedAngleOffset>0</equippedAngleOffset>
    <graphicData Class="AutomataRace.GraphicData_Sprite">
      <texPath>Things/Weapons/PNPersonaHammer</texPath>
      <graphicClass>AutomataRace.Graphic_Sprite</graphicClass>
      <color>(255,255,255)</color>
      <totalFrameLength>170</totalFrameLength>
      <keyFrames>
        <li>
          <frame>0</frame>
          <index>0</index>
        </li>
        <li>
          <frame>120</frame>
          <index>1</index>
        </li>
        <li>
          <frame>125</frame>
          <index>2</index>
        </li>
        <li>
          <frame>130</frame>
          <index>0</index>
        </li>
        <li>
          <frame>165</frame>
          <index>1</index>
        </li>
      </keyFrames>
    </graphicData>
    <soundInteract>Interact_BladelinkZeusHammer</soundInteract>
    <meleeHitSound>MeleeHit_BladelinkZeusHammer</meleeHitSound>
    <weaponClasses>
      <li>Melee</li>
      <li>MeleeBlunt</li>
    </weaponClasses>
    <tools>
      <li>
        <label>handle</label>
        <capacities>
          <li>Poke</li>
        </capacities>
        <power>15</power>
        <cooldownTime>1.6</cooldownTime>
      </li>
      <li>
        <label>head</label>
        <labelUsedInLogging>false</labelUsedInLogging>
        <capacities>
          <li>Blunt</li>
        </capacities>
        <power>32</power>
        <cooldownTime>2.2</cooldownTime>
        <extraMeleeDamages>
          <li>
            <def>EMP</def>
            <amount>10</amount>
          </li>
        </extraMeleeDamages>
      </li>
    </tools>
  </ThingDef>

  <!--==================================== 스톰랜스 ====================================-->

  <ThingDef ParentName="PN_BaseWeapon_Bladelink">
    <defName>PN_StormLance_Bladelink</defName>
    <label>PnL storm lance</label>
    <description>...</description>
    <statBases>
      <MarketValue>3000</MarketValue>
      <Mass>4</Mass>
    </statBases>
    <equippedAngleOffset>45</equippedAngleOffset>
   <graphicData Class="AutomataRace.GraphicData_Sprite">
      <texPath>Things/Weapons/PNStormLance</texPath>
      <graphicClass>AutomataRace.Graphic_Sprite</graphicClass>
      <color>(255,255,255)</color>
      <totalFrameLength>170</totalFrameLength>
      <keyFrames>
        <li>
          <frame>0</frame>
          <index>0</index>
        </li>
        <li>
          <frame>120</frame>
          <index>1</index>
        </li>
        <li>
          <frame>125</frame>
          <index>2</index>
        </li>
        <li>
          <frame>130</frame>
          <index>0</index>
        </li>
        <li>
          <frame>165</frame>
          <index>1</index>
        </li>
      </keyFrames>
    </graphicData>
    <soundInteract>Interact_BladelinkZeusHammer</soundInteract>
    <meleeHitSound>MeleeHit_BladelinkZeusHammer</meleeHitSound>
    <weaponClasses>
      <li>Melee</li>
      <li>MeleeBlunt</li>
      <li>MeleePiercer</li>
    </weaponClasses>
    <tools>
      <li>
        <label>handle</label>
        <capacities>
          <li>Poke</li>
        </capacities>
        <power>15</power>
        <cooldownTime>1.6</cooldownTime>
      </li>
      <li>
        <label>side</label>
        <labelUsedInLogging>false</labelUsedInLogging>
        <capacities>
          <li>Blunt</li>
        </capacities>
        <power>32</power>
        <cooldownTime>2.2</cooldownTime>
        <extraMeleeDamages>
          <li>
            <def>EMP</def>
            <amount>10</amount>
          </li>
        </extraMeleeDamages>
      </li>
      <li>
        <label>point</label>
        <capacities>
          <li>Stab</li>
        </capacities>
        <power>32</power>
        <cooldownTime>2.2</cooldownTime>
        <extraMeleeDamages>
          <li>
            <def>EMP</def>
            <amount>10</amount>
          </li>
        </extraMeleeDamages>
      </li>
    </tools>
    <comps>
      <li Class="SYS.CompProperties_WeaponExtention">
        <littleDown>True</littleDown>
        <northOffset>
          <position>(0.2,0,0.25)</position>
          <angle>-45</angle>
        </northOffset>
        <southOffset>
          <position>(-0.25,0.3,0.2)</position>
          <angle>45</angle>
        </southOffset>
        <eastOffset>
          <position>(0.15,0.3,0.2)</position>
          <angle>-45</angle>
        </eastOffset>
        <westOffset>
          <position>(-0.15,-0.3,0.2)</position>
          <angle>45</angle>
        </westOffset>
      </li>
    </comps>
  </ThingDef>
</Defs>