Skip to content

Commit

Permalink
Merge pull request CombatExtended-Continued#3495 from SaltyKarl/Space…
Browse files Browse the repository at this point in the history
…r_Pack_update

Spacer pack patch update
  • Loading branch information
N7Huntsman authored Oct 25, 2024
2 parents db3ed9f + 70aaced commit 830bdfd
Show file tree
Hide file tree
Showing 2 changed files with 219 additions and 14 deletions.
71 changes: 71 additions & 0 deletions ModPatches/Spacer Pack/Defs/Spacer Pack/Defs_Projectiles.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
<?xml version="1.0" encoding="utf-8"?>
<Defs>

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

<ThingDef ParentName="BaseExplosiveBullet" MayRequire="Ludeon.RimWorld.Anomaly">
<defName>dvd_grubpack_spit_CE</defName>
<thingClass>CombatExtended.ProjectileCE_Explosive</thingClass>
<label>grub glob</label>
<graphicData>
<graphicClass>Graphic_Single</graphicClass>
<texPath>Things/Projectile/GrubpackGlob</texPath>
<drawSize>(1.0,1.0)</drawSize>
<shaderType>MoteGlow</shaderType>
</graphicData>
<projectile Class="CombatExtended.ProjectilePropertiesCE">
<speed>0</speed>
<useGraphicClass>True</useGraphicClass>
<shadowSize>1</shadowSize>
<spinRate>10</spinRate>
<flyOverhead>True</flyOverhead>
<gravityFactor>5</gravityFactor>
<damageDef>AcidBurn</damageDef>
<damageAmountBase>30</damageAmountBase>
<explosionRadius>2.9</explosionRadius>
<soundExplode>SpitterSpitLands</soundExplode>
<filth>Filth_SpentAcid</filth>
<filthCount>1</filthCount>
<explosionEffect>Shell_AcidSpitImpact</explosionEffect>
<explosionEffectLifetimeTicks>60</explosionEffectLifetimeTicks>
<doExplosionVFX>false</doExplosionVFX>
</projectile>
</ThingDef>

<ThingDef ParentName="Base8x50mmChargedBullet">
<defName>dvd_SkipBolt_CE</defName>
<label>skipbolt</label>
<graphicData>
<texPath>Things/Projectile/ArchoPack_Bolt</texPath>
<graphicClass>Graphic_Single</graphicClass>
</graphicData>
<projectile Class="CombatExtended.ProjectilePropertiesCE">
<damageDef>dvd_SkipBolt</damageDef>
<damageAmountBase>26</damageAmountBase>
<armorPenetrationSharp>120</armorPenetrationSharp>
<armorPenetrationBlunt>120</armorPenetrationBlunt>
</projectile>
<comps>
<li Class="CombatExtended.CompProperties_ProjectileFleck">
<FleckDatas>
<li>
<fleck>dvd_Fleck_ArchoPack_Main</fleck>
<emissionsPerTick>0.5</emissionsPerTick>
<rotation>0</rotation>
<scale>.5</scale>
<flecksPerEmission>1</flecksPerEmission>
</li>
<li>
<fleck>dvd_Fleck_ArchoPack_Smoke</fleck>
<emissionsPerTick>0.5</emissionsPerTick>
<rotation>0</rotation>
<scale>.5</scale>
<flecksPerEmission>1</flecksPerEmission>
<cutoffTickRange>120~240</cutoffTickRange>
</li>
</FleckDatas>
</li>
</comps>
</ThingDef>

</Defs>
162 changes: 148 additions & 14 deletions ModPatches/Spacer Pack/Patches/Spacer Pack/Backpacks.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<Patch>

<!-- ThingDef Editing -->

<Operation Class="PatchOperationAttributeSet">
<xpath>Defs/ThingDef[@Name="BackpackBase"]</xpath>
<attribute>ParentName</attribute>
Expand All @@ -25,7 +25,7 @@
</apparel>
</value>
</Operation>

<Operation Class="PatchOperationReplace">
<xpath>Defs/ThingDef[@Name="BackpackBase"]/thingCategories</xpath>
<value>
Expand All @@ -43,15 +43,32 @@
</tradeTags>
</value>
</Operation>


<!-- Harvest Pack -->

<Operation Class="PatchOperationReplace">
<xpath>Defs/ThingDef[defName="dvd_harvestpack"]/equippedStatOffsets/VEF_MassCarryCapacity</xpath>
<value>
<CarryBulk>30</CarryBulk>
</value>
</Operation>

<Operation Class="PatchOperationReplace">
<xpath>Defs/ThingDef[defName="dvd_harvestpack"]/statBases/Mass</xpath>
<value>
<Mass>6</Mass>
<Bulk>8</Bulk>
</value>
</Operation>

<!-- Venting Pack -->

<Operation Class="PatchOperationReplace">
<xpath>Defs/ThingDef[defName="dvd_ventpack"]/equippedStatOffsets</xpath>
<value>
<equippedStatOffsets>
<CarryBulk>25</CarryBulk>
</equippedStatOffsets>
</equippedStatOffsets>
</value>
</Operation>

Expand All @@ -70,8 +87,72 @@
</value>
</Operation>

<!-- Devourer Grubpack -->

<Operation Class="PatchOperationReplace" MayRequire="Ludeon.RimWorld.Anomaly">
<xpath>Defs/ThingDef[defName="dvd_grubpack"]/equippedStatOffsets/VEF_MassCarryCapacity</xpath>
<value>
<CarryBulk>70</CarryBulk>
</value>
</Operation>

<Operation Class="PatchOperationRemove" MayRequire="Ludeon.RimWorld.Anomaly">
<xpath>Defs/ThingDef[defName="dvd_grubpack"]/equippedStatOffsets/MoveSpeed</xpath>
</Operation>

<Operation Class="PatchOperationReplace" MayRequire="Ludeon.RimWorld.Anomaly">
<xpath>Defs/ThingDef[defName="dvd_grubpack"]/statBases/Mass</xpath>
<value>
<Mass>6</Mass>
<Bulk>8</Bulk>
</value>
</Operation>

<Operation Class="PatchOperationAdd" MayRequire="Ludeon.RimWorld.Anomaly">
<xpath>Defs/ThingDef[defName="dvd_grubpack"]/comps</xpath>
<value>
<li Class="CombatExtended.CompProperties_Charges">
<chargeSpeeds>
<li>30</li>
<li>50</li>
<li>70</li>
<li>90</li>
</chargeSpeeds>
</li>
</value>
</Operation>

<Operation Class="PatchOperationReplace" MayRequire="Ludeon.RimWorld.Anomaly">
<xpath>Defs/ThingDef[defName="dvd_grubpack"]/verbs</xpath>
<value>
<verbs>
<li Class="CombatExtended.VerbPropertiesCE">
<label>splash acid</label>
<verbClass>CombatExtended.Verb_LaunchProjectileStaticCE</verbClass>
<hasStandardCommand>true</hasStandardCommand>
<onlyManualCast>True</onlyManualCast>
<warmupTime>2</warmupTime>
<range>35</range>
<minRange>5</minRange>
<ai_IsBuildingDestroyer>true</ai_IsBuildingDestroyer>
<soundCast>SpitterSpit</soundCast>
<soundCastTail>GunTail_Medium</soundCastTail>
<muzzleFlashScale>14</muzzleFlashScale>
<drawHighlightWithLineOfSight>true</drawHighlightWithLineOfSight>
<targetParams>
<canTargetLocations>true</canTargetLocations>
</targetParams>
<ignorePartialLoSBlocker>true</ignorePartialLoSBlocker>
<defaultProjectile>dvd_grubpack_spit_CE</defaultProjectile>
<rangedFireRulepack>Combat_RangedFire_Thrown</rangedFireRulepack>
</li>
</verbs>
</value>
</Operation>


<!-- Spacer Pack -->

<Operation Class="PatchOperationReplace">
<xpath>Defs/ThingDef[defName="dvd_spacerpack"]/equippedStatOffsets</xpath>
<value>
Expand All @@ -80,33 +161,63 @@
</equippedStatOffsets>
</value>
</Operation>

<Operation Class="PatchOperationReplace">
<xpath>Defs/ThingDef[defName="dvd_spacerpack"]/statBases/Mass</xpath>
<value>
<Mass>4</Mass>
<Bulk>5</Bulk>
</value>
</Operation>

<!-- Med Pack -->

<Operation Class="PatchOperationReplace">
<xpath>Defs/ThingDef[defName="dvd_medpack"]/equippedStatOffsets/VEF_MassCarryCapacity</xpath>
<value>
<CarryBulk>50</CarryBulk>
</value>
</Operation>

<Operation Class="PatchOperationAdd">
<xpath>Defs/ThingDef[defName="dvd_medpack"]/statBases</xpath>
<value>
<Bulk>4</Bulk>
</value>
</Operation>


<!-- Voidsent Pack -->

<Operation Class="PatchOperationReplace">
<xpath>Defs/ThingDef[defName="dvd_voidpack"]/equippedStatOffsets/VEF_MassCarryCapacity</xpath>
<value>
<CarryBulk>80</CarryBulk>
</value>
</Operation>

<Operation Class="PatchOperationAdd">
<xpath>Defs/ThingDef[defName="dvd_voidpack"]/statBases</xpath>
<value>
<Bulk>4</Bulk>
</value>
</Operation>

<Operation Class="PatchOperationReplace">
<xpath>Defs/ThingDef[defName="dvd_voidpack"]/comps/li[@Class="VFECore.CompProperties_ShieldBubble"]/EnergyShieldEnergyMax</xpath>
<value>
<EnergyShieldEnergyMax>30</EnergyShieldEnergyMax>
</value>
</Operation>

<Operation Class="PatchOperationReplace">
<xpath>Defs/ThingDef[defName="dvd_voidpack"]/comps/li[@Class="VFECore.CompProperties_ShieldBubble"]/EnergyShieldRechargeRate</xpath>
<value>
<EnergyShieldRechargeRate>6</EnergyShieldRechargeRate>
</value>
</Operation>

<!-- Archotech Skippack -->

<Operation Class="PatchOperationReplace">
<xpath>Defs/ThingDef[defName="dvd_archopack"]/equippedStatOffsets/VEF_MassCarryCapacity</xpath>
<value>
Expand All @@ -122,5 +233,28 @@
<Bulk>6</Bulk>
</value>
</Operation>


<Operation Class="PatchOperationReplace">
<xpath>Defs/ThingDef[defName="dvd_archopack"]/verbs</xpath>
<value>
<verbs>
<li Class="CombatExtended.VerbPropertiesCE">
<label>archotech skipbolt</label>
<verbClass>CombatExtended.Verb_LaunchProjectileStaticCE</verbClass>
<hasStandardCommand>true</hasStandardCommand>
<onlyManualCast>true</onlyManualCast>
<warmupTime>0.5</warmupTime>
<range>55</range>
<burstShotCount>3</burstShotCount>
<ticksBetweenBurstShots>10</ticksBetweenBurstShots>
<soundCast>dvd_Sound_SkipBolt</soundCast>
<soundCastTail>GunTail_Medium</soundCastTail>
<muzzleFlashScale>14</muzzleFlashScale>
<defaultProjectile>dvd_SkipBolt_CE</defaultProjectile>
<rangedFireRulepack>Combat_RangedFire_Thrown</rangedFireRulepack>
</li>
</verbs>
</value>
</Operation>

</Patch>

0 comments on commit 830bdfd

Please sign in to comment.