Skip to content

Commit

Permalink
Merge pull request #3138 from Tostov/Miho-and-ammo
Browse files Browse the repository at this point in the history
Miho and ammo
  • Loading branch information
N7Huntsman authored Jun 13, 2024
2 parents c20f75f + 4f5f3d5 commit f91f5e3
Show file tree
Hide file tree
Showing 25 changed files with 2,219 additions and 758 deletions.
7 changes: 7 additions & 0 deletions Defs/Ammo/AmmoCategoryDefs/AmmoCategories_General.xml
Original file line number Diff line number Diff line change
Expand Up @@ -84,4 +84,11 @@
<description>Special round based around a low explosive element, used to destroy structures and fortifications.</description>
</CombatExtended.AmmoCategoryDef>

<CombatExtended.AmmoCategoryDef>
<defName>Nail</defName>
<label>nail</label>
<labelShort>nail</labelShort>
<description>Pointy nails arranged in strips.</description>
</CombatExtended.AmmoCategoryDef>

</Defs>
124 changes: 124 additions & 0 deletions Defs/Ammo/Other/Ammo_Nail.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,124 @@
<?xml version="1.0" encoding="utf-8"?>
<Defs>

<ThingCategoryDef>
<defName>AmmoNail</defName>
<label>nail</label>
<parent>AmmoRifles</parent>
<iconPath>Things/Ammo/Nail/Nail_c</iconPath>
</ThingCategoryDef>

<!-- ==================== AmmoSet ========================== -->

<CombatExtended.AmmoSetDef>
<defName>AmmoSet_Nail</defName>
<label>nail</label>
<ammoTypes>
<Ammo_Nail>Bullet_Nail</Ammo_Nail>
</ammoTypes>
</CombatExtended.AmmoSetDef>

<CombatExtended.AmmoSetDef>
<defName>AmmoSet_Nail_HV</defName>
<label>nail</label>
<ammoTypes>
<Ammo_Nail>Bullet_Nail_HV</Ammo_Nail>
</ammoTypes>
</CombatExtended.AmmoSetDef>

<!-- ==================== Ammo ========================== -->

<ThingDef Class="CombatExtended.AmmoDef" Name="BaseNailShot" ParentName="SmallAmmoBase" Abstract="True">
<description>A pointed carpentry nail a few inches long. Not suitable for combat when used with conventional tools.</description>
<statBases>
<Mass>0.01</Mass>
<Bulk>0.01</Bulk>
</statBases>
<tradeTags>
<li>CE_AutoEnableTrade_Sellable</li>
<li>CE_AutoEnableCrafting</li>
<li>CE_AutoEnableCrafting_FueledSmithy</li>
<li>CE_AutoEnableCrafting_ElectricSmithy</li>
</tradeTags>
<thingCategories>
<li>AmmoNail</li>
</thingCategories>
</ThingDef>

<ThingDef Class="CombatExtended.AmmoDef" ParentName="BaseNailShot">
<defName>Ammo_Nail</defName>
<label>nail</label>
<graphicData>
<texPath>Things/Ammo/Nail</texPath>
<graphicClass>Graphic_StackCount</graphicClass>
</graphicData>
<statBases>
<MarketValue>0.02</MarketValue>
</statBases>
<ammoClass>Nail</ammoClass>
</ThingDef>

<!-- ================== Projectiles ================== -->

<ThingDef Name="NailShotBullet" ParentName="BaseBulletCE" Abstract="true">
<label>nail</label>
<graphicData>
<texPath>Things/Projectile/Shotgun_Pellet</texPath>
<graphicClass>Graphic_Single</graphicClass>
</graphicData>
<projectile>
<damageDef>Bullet</damageDef>
<dropsCasings>false</dropsCasings>
</projectile>
</ThingDef>

<ThingDef ParentName="NailShotBullet">
<defName>Bullet_Nail</defName>
<projectile Class="CombatExtended.ProjectilePropertiesCE">
<speed>9</speed>
<damageAmountBase>1</damageAmountBase>
<armorPenetrationBlunt>0.06</armorPenetrationBlunt>
<armorPenetrationSharp>0.2</armorPenetrationSharp>
</projectile>
</ThingDef>

<ThingDef ParentName="NailShotBullet">
<defName>Bullet_Nail_HV</defName>
<label>nail</label>
<projectile Class="CombatExtended.ProjectilePropertiesCE">
<speed>32</speed>
<damageAmountBase>3</damageAmountBase>
<armorPenetrationBlunt>0.82</armorPenetrationBlunt>
<armorPenetrationSharp>3</armorPenetrationSharp>
</projectile>
</ThingDef>

<!-- ==================== Recipes ========================== -->

<RecipeDef ParentName="AmmoRecipeBase">
<defName>MakeAmmo_Nail</defName>
<label>make nails x500</label>
<description>Craft 500 steel nails.</description>
<jobString>Making nails.</jobString>
<workAmount>400</workAmount>
<ingredients>
<li>
<filter>
<thingDefs>
<li>Steel</li>
</thingDefs>
</filter>
<count>4</count>
</li>
</ingredients>
<fixedIngredientFilter>
<thingDefs>
<li>Steel</li>
</thingDefs>
</fixedIngredientFilter>
<products>
<Ammo_Nail>500</Ammo_Nail>
</products>
</RecipeDef>

</Defs>
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit f91f5e3

Please sign in to comment.