Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
81 changes: 39 additions & 42 deletions ModPatches/Spacer Arsenal/Defs/Spacer Arsenal/Ammo.xml
Original file line number Diff line number Diff line change
Expand Up @@ -77,34 +77,31 @@

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

<ThingDef Name="BasePlasmaBlastBullet" ParentName="BaseBulletCE" Abstract="true">
<ThingDef ParentName="BaseExplosiveBullet">
<defName>Bullet_Bolt_PlasmaBlaster</defName>
<label>plasma bolt</label>
<graphicData>
<texPath>Things/Projectiles/Bullet_Plasma</texPath>
<graphicClass>Graphic_Single</graphicClass>
<shaderType>TransparentPostLight</shaderType>
</graphicData>
<projectile Class="CombatExtended.ProjectilePropertiesCE">
<damageDef>Burn</damageDef>
<speed>151</speed>
<dropsCasings>false</dropsCasings>
</projectile>
</ThingDef>

<ThingDef ParentName="BasePlasmaBlastBullet">
<defName>Bullet_Bolt_PlasmaBlaster</defName>
<projectile Class="CombatExtended.ProjectilePropertiesCE">
<damageAmountBase>8</damageAmountBase>
<armorPenetrationSharp>8</armorPenetrationSharp>
<armorPenetrationBlunt>8</armorPenetrationBlunt>
<empShieldBreakChance>0.2</empShieldBreakChance>
<secondaryDamage>
<li>
<def>EMP</def>
<amount>3</amount>
</li>
</secondaryDamage>
<speed>178</speed>
<damageDef>Flame_Secondary_Incendiary</damageDef>
<damageAmountBase>2</damageAmountBase>
<explosionRadius>0.5</explosionRadius>
<applyDamageToExplosionCellsNeighbors>true</applyDamageToExplosionCellsNeighbors>
<screenShakeFactor>0</screenShakeFactor>
</projectile>
<comps>
<li Class="CombatExtended.CompProperties_ExplosiveCE">
<damageAmountBase>12</damageAmountBase>
<explosiveDamageType>EMP</explosiveDamageType>
<explosiveRadius>0.5</explosiveRadius>
<explosionSound>MortarBomb_Explode</explosionSound>
<applyDamageToExplosionCellsNeighbors>true</applyDamageToExplosionCellsNeighbors>
</li>
</comps>
</ThingDef>

<!-- ==================== Recipes ========================== -->
Expand Down Expand Up @@ -232,26 +229,24 @@

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

<ThingDef Name="BasePhotonBoltBullet" ParentName="BaseBulletCE" Abstract="true">
<ThingDef ParentName="Base6x24mmChargedBullet">
<defName>Bullet_Bolt_PhotonBlaster</defName>
<label>photon bolt</label>
<graphicData>
<texPath>Things/Projectiles/Bullet_Photon</texPath>
<graphicClass>Graphic_Single</graphicClass>
<shaderType>TransparentPostLight</shaderType>
</graphicData>
<projectile Class="CombatExtended.ProjectilePropertiesCE">
<damageDef>DV_PhotonDamage</damageDef>
<speed>156</speed>
<dropsCasings>false</dropsCasings>
</projectile>
</ThingDef>

<ThingDef ParentName="BasePhotonBoltBullet">
<defName>Bullet_Bolt_PhotonBlaster</defName>
<projectile Class="CombatExtended.ProjectilePropertiesCE">
<damageAmountBase>6</damageAmountBase>
<armorPenetrationSharp>6</armorPenetrationSharp>
<armorPenetrationBlunt>0.01</armorPenetrationBlunt>
<damageAmountBase>13</damageAmountBase>
<secondaryDamage>
<li>
<def>Flame_Secondary_Incendiary</def>
<amount>4</amount>
</li>
</secondaryDamage>
<armorPenetrationSharp>15</armorPenetrationSharp>
<armorPenetrationBlunt>25.6</armorPenetrationBlunt>
</projectile>
</ThingDef>

Expand All @@ -277,32 +272,32 @@
<li>Steel</li>
</thingDefs>
</filter>
<count>4</count>
<count>6</count>
</li>
<li>
<filter>
<thingDefs>
<li>ComponentSpacer</li>
<li>ComponentIndustrial</li>
</thingDefs>
</filter>
<count>4</count>
<count>6</count>
</li>
</ingredients>
<fixedIngredientFilter>
<thingDefs>
<li>Plasteel</li>
<li>Steel</li>
<li>ComponentSpacer</li>
<li>ComponentIndustrial</li>
</thingDefs>
</fixedIngredientFilter>
<products>
<Ammo_PhotonCell>500</Ammo_PhotonCell>
</products>
<workAmount>8400</workAmount>
</RecipeDef>

<!-- Neutron Cell Ammo -->

<ThingCategoryDef>
<defName>AmmoNeutronCell</defName>
<label>neutron cell</label>
Expand Down Expand Up @@ -374,8 +369,8 @@
<defName>Bullet_NeutronStreamer</defName>
<projectile Class="CombatExtended.ProjectilePropertiesCE">
<damageAmountBase>4</damageAmountBase>
<armorPenetrationSharp>0.001</armorPenetrationSharp>
<armorPenetrationBlunt>30</armorPenetrationBlunt>
<armorPenetrationSharp>20</armorPenetrationSharp>
<armorPenetrationBlunt>0.01</armorPenetrationBlunt>
</projectile>
</ThingDef>

Expand Down Expand Up @@ -432,7 +427,7 @@
</products>
<workAmount>8400</workAmount>
</RecipeDef>

<!-- ==================== Laserpulse Longrifle ========================== -->

<CombatExtended.AmmoSetDef>
Expand All @@ -451,6 +446,8 @@
<projectile Class="CombatExtended.ProjectilePropertiesCE">
<damageDef MayRequire="ludeon.rimworld.odyssey">BeamBypassShields</damageDef>
<damageAmountBase>36</damageAmountBase>
<armorPenetrationSharp>20.25</armorPenetrationSharp>
<armorPenetrationBlunt>0.001</armorPenetrationBlunt>
</projectile>
</ThingDef>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,24 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Patch>
<!-- ========== Photon Shot ========== -->

<Operation Class="PatchOperationAddModExtension">
<xpath>Defs/DamageDef[defName="DV_PhotonDamage"]</xpath>
<value>
<li Class="CombatExtended.DamageDefExtensionCE">
<harmOnlyOutsideLayers>true</harmOnlyOutsideLayers>
<canCauseWallFragmentation>false</canCauseWallFragmentation>
</li>
</value>
</Operation>

<Operation Class="PatchOperationReplace">
<xpath>/Defs/DamageDef[defName="DV_PhotonDamage"]/armorCategory</xpath>
<value>
<armorCategory>Sharp</armorCategory>
</value>
</Operation>

<!-- ========== Vaporize ========== -->

<Operation Class="PatchOperationAddModExtension">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,9 @@
<recoilAmount>1.86</recoilAmount>
<verbClass>CombatExtended.Verb_ShootCE</verbClass>
<hasStandardCommand>True</hasStandardCommand>
<defaultProjectile>Bullet_145x114mm_FMJ</defaultProjectile>
<defaultProjectile>Bullet_277Fury_FMJ</defaultProjectile>
<burstShotCount>10</burstShotCount>
<ticksBetweenBurstShots>9</ticksBetweenBurstShots>
<ticksBetweenBurstShots>6</ticksBetweenBurstShots>
<warmupTime>2.1</warmupTime>
<range>60</range>
<soundCast>Shot_Autocannon</soundCast>
Expand All @@ -105,7 +105,7 @@
<AmmoUser>
<magazineSize>60</magazineSize>
<reloadTime>4.9</reloadTime>
<ammoSet>AmmoSet_145x114mm</ammoSet>
<ammoSet>AmmoSet_277Fury</ammoSet>
</AmmoUser>
<FireModes>
<aiUseBurstMode>FALSE</aiUseBurstMode>
Expand Down Expand Up @@ -243,29 +243,29 @@
<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
<defName>DV_Gun_BruteRifle</defName>
<statBases>
<Bulk>25</Bulk>
<SwayFactor>2.07</SwayFactor>
<Bulk>8</Bulk>
<SwayFactor>1.57</SwayFactor>
<ShotSpread>0.07</ShotSpread>
<SightsEfficiency>1</SightsEfficiency>
<RangedWeapon_Cooldown>0.47</RangedWeapon_Cooldown>
</statBases>
<Properties>
<recoilAmount>2.33</recoilAmount>
<recoilAmount>1.63</recoilAmount>
<verbClass>CombatExtended.Verb_ShootCE</verbClass>
<hasStandardCommand>True</hasStandardCommand>
<defaultProjectile>Bullet_50BMG_FMJ</defaultProjectile>
<defaultProjectile>Bullet_277Fury_FMJ</defaultProjectile>
<burstShotCount>4</burstShotCount>
<ticksBetweenBurstShots>10</ticksBetweenBurstShots>
<ticksBetweenBurstShots>6</ticksBetweenBurstShots>
<warmupTime>2.1</warmupTime>
<range>40</range>
<range>60</range>
<soundCast>Shot_Autocannon</soundCast>
<soundCastTail>GunTail_Medium</soundCastTail>
<muzzleFlashScale>12</muzzleFlashScale>
</Properties>
<AmmoUser>
<magazineSize>15</magazineSize>
<magazineSize>28</magazineSize>
<reloadTime>4.9</reloadTime>
<ammoSet>AmmoSet_50BMG</ammoSet>
<ammoSet>AmmoSet_277Fury</ammoSet>
</AmmoUser>
<FireModes>
<aiUseBurstMode>true</aiUseBurstMode>
Expand Down Expand Up @@ -358,7 +358,7 @@
<Bulk>11</Bulk>
<SwayFactor>1.68</SwayFactor>
<ShotSpread>0.07</ShotSpread>
<SightsEfficiency>1</SightsEfficiency>
<SightsEfficiency>1.2</SightsEfficiency>
<RangedWeapon_Cooldown>0.46</RangedWeapon_Cooldown>
</statBases>
<Properties>
Expand All @@ -369,7 +369,7 @@
<burstShotCount>6</burstShotCount>
<ticksBetweenBurstShots>7</ticksBetweenBurstShots>
<warmupTime>1.2</warmupTime>
<range>54</range>
<range>55</range>
<soundCast>Shot_Minigun</soundCast>
<soundCastTail>GunTail_Medium</soundCastTail>
<muzzleFlashScale>9</muzzleFlashScale>
Expand Down Expand Up @@ -511,5 +511,5 @@
</operations>
</match>
</Operation>

</Patch>
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<Patch>

<Operation Class="PatchOperationFindMod">
<mods>
<li>Odyssey</li>
</mods>
<match Class="PatchOperationSequence">
<operations>

<!-- Unique Clash HMG -->
<li Class="PatchOperationAdd">
<xpath>Defs/ThingDef[defName="DV_Gun_ClashHMG_Unique"]/comps</xpath>
<value>
<li Class="CombatExtended.CompProperties_AmmoUser">
<magazineSize>60</magazineSize>
<reloadTime>4.9</reloadTime>
<ammoSet>AmmoSet_145x114mm</ammoSet>
<ammoSet>AmmoSet_277Fury</ammoSet>
</li>
<li Class="CombatExtended.CompProperties_FireModes">
<aiUseBurstMode>false</aiUseBurstMode>
Expand All @@ -31,9 +31,9 @@
<xpath>Defs/ThingDef[defName="DV_Gun_BruteRifle_Unique"]/comps</xpath>
<value>
<li Class="CombatExtended.CompProperties_AmmoUser">
<magazineSize>15</magazineSize>
<magazineSize>28</magazineSize>
<reloadTime>4.9</reloadTime>
<ammoSet>AmmoSet_50BMG</ammoSet>
<ammoSet>AmmoSet_277Fury</ammoSet>
</li>
<li Class="CombatExtended.CompProperties_FireModes">
<aiUseBurstMode>true</aiUseBurstMode>
Expand All @@ -43,12 +43,12 @@
<li Class="CombatExtended.CompProperties_UnderBarrel"/>
</value>
</li>

<li Class="PatchOperationAdd">
<xpath>Defs/ThingDef[defName="DV_Gun_PhotonSMG_Unique"]/comps</xpath>
<value>
<li Class="CombatExtended.CompProperties_AmmoUser">
<magazineSize>25</magazineSize>
<magazineSize>60</magazineSize>
<reloadTime>4</reloadTime>
<ammoSet>AmmoSet_PhotonBlaster</ammoSet>
</li>
Expand All @@ -60,9 +60,9 @@
<li Class="CombatExtended.CompProperties_UnderBarrel"/>
</value>
</li>

</operations>
</match>
</Operation>

</Patch>
Loading