Skip to content

Commit

Permalink
sos2 xml
Browse files Browse the repository at this point in the history
  • Loading branch information
SaltyKarl committed Jun 6, 2024
1 parent 0eb87b5 commit f121fcb
Show file tree
Hide file tree
Showing 7 changed files with 224 additions and 396 deletions.

This file was deleted.

42 changes: 42 additions & 0 deletions ModPatches/Save Our Ship 2/Defs/Save Our Ship 2/Projectiles.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<?xml version="1.0" encoding="utf-8"?>
<Defs>

<!-- === Projectiles === -->
<ThingDef ParentName="Base40x46mmGrenadeBullet">
<defName>Bullet_Shuttle_Plasma_CE</defName>
<label>plasma toroid</label>
<graphicData>
<texPath>Things/Projectile/ShipTurretPlasma</texPath>
<graphicClass>Graphic_Single</graphicClass>
<shaderType>TransparentPostLight</shaderType>
<drawSize>(1,1)</drawSize>
</graphicData>
<projectile Class="CombatExtended.ProjectilePropertiesCE">
<explosionRadius>1.2</explosionRadius>
<speed>160</speed>
<damageDef>ShipPlasmaSmall</damageDef>
<damageAmountBase>40</damageAmountBase>
<applyDamageToExplosionCellsNeighbors>true</applyDamageToExplosionCellsNeighbors>
<extraDamages>
<li>
<def>Flame</def>
<amount>20</amount>
<chance>1</chance>
</li>
</extraDamages>
</projectile>
</ThingDef>

<ThingDef ParentName="LaserBulletRed"><!-- the projectile switching don't work, so damage is reduced -->
<defName>Bullet_Shuttle_Laser_CE</defName>
<label>laser beam</label>
<projectile Class="CombatExtended.ProjectilePropertiesCE">
<explosionRadius>1.2</explosionRadius>
<speed>160</speed>
<damageDef>ShipLaserSmall</damageDef>
<damageAmountBase>25</damageAmountBase>
<applyDamageToExplosionCellsNeighbors>true</applyDamageToExplosionCellsNeighbors>
</projectile>
</ThingDef>

</Defs>
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,22 @@
</value>
</Operation>

<!-- Kid EVA Suit -->
<Operation Class="PatchOperationAdd">
<xpath>Defs/ThingDef[defName="Apparel_SpaceSuitBodyChild"]/statBases</xpath>
<value>
<Bulk>5</Bulk>
<WornBulk>4</WornBulk>
</value>
</Operation>

<Operation Class="PatchOperationAdd">
<xpath>Defs/ThingDef[defName="Apparel_SpaceSuitBodyChild"]/equippedStatOffsets</xpath>
<value>
<ToxicEnvironmentResistance>0.50</ToxicEnvironmentResistance>
</value>
</Operation>

<!-- EVA Helmet -->
<Operation Class="PatchOperationAdd">
<xpath>Defs/ThingDef[defName="Apparel_SpaceSuitHelmet"]/statBases</xpath>
Expand Down Expand Up @@ -73,6 +89,54 @@
</value>
</Operation>

<!-- Kid EVA Helmet -->
<Operation Class="PatchOperationAdd">
<xpath>Defs/ThingDef[defName="Apparel_SpaceSuitHelmetChild"]/statBases</xpath>
<value>
<Bulk>5</Bulk>
<WornBulk>1</WornBulk>
</value>
</Operation>

<Operation Class="PatchOperationReplace">
<xpath>Defs/ThingDef[defName="Apparel_SpaceSuitHelmetChild"]/statBases/ArmorRating_Sharp</xpath>
<value>
<ArmorRating_Sharp>6.5</ArmorRating_Sharp>
</value>
</Operation>

<Operation Class="PatchOperationReplace">
<xpath>Defs/ThingDef[defName="Apparel_SpaceSuitHelmetChild"]/statBases/ArmorRating_Blunt</xpath>
<value>
<ArmorRating_Blunt>20</ArmorRating_Blunt>
</value>
</Operation>

<Operation Class="PatchOperationConditional">
<xpath>Defs/ThingDef[defName="Apparel_SpaceSuitHelmetChild"]/apparel/immuneToToxGasExposure</xpath>
<nomatch Class="PatchOperationAdd">
<xpath>Defs/ThingDef[defName="Apparel_SpaceSuitHelmetChild"]/apparel</xpath>
<value>
<immuneToToxGasExposure>true</immuneToToxGasExposure>
</value>
</nomatch>
</Operation>

<Operation Class="PatchOperationAdd">
<xpath>Defs/ThingDef[defName="Apparel_SpaceSuitHelmetChild"]/equippedStatOffsets</xpath>
<value>
<SmokeSensitivity>-1</SmokeSensitivity>
</value>
</Operation>

<Operation Class="PatchOperationAdd">
<xpath>Defs/ThingDef[defName="Apparel_SpaceSuitHelmetChild"]/apparel/layers</xpath>
<value>
<li>OnHead</li>
<li>StrappedHead</li>
</value>
</Operation>

<!-- Heavy EVA Helmet -->

<Operation Class="PatchOperationReplace">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<Patch>
<!-- ========== Base Space Insect ========== -->
<Operation Class="PatchOperationAddModExtension">
<xpath>Defs/ThingDef[@Name="BaseInsectSpace"]</xpath>
<xpath>Defs/ThingDef[@Name="SpaceInsectThingBase"]</xpath>
<value>
<li Class="CombatExtended.RacePropertiesExtensionCE">
<bodyShape>QuadrupedLow</bodyShape>
Expand All @@ -11,7 +11,7 @@
</Operation>

<Operation Class="PatchOperationAdd">
<xpath>Defs/ThingDef[@Name="BaseInsectSpace"]/statBases</xpath>
<xpath>Defs/ThingDef[@Name="SpaceInsectThingBase"]/statBases</xpath>
<value>
<SmokeSensitivity>0</SmokeSensitivity>
</value>
Expand Down Expand Up @@ -100,14 +100,26 @@
<value>
<tools>
<li Class="CombatExtended.ToolCE">
<label>head claw</label>
<capacities>
<li>Cut</li>
</capacities>
<power>20</power>
<power>21</power>
<cooldownTime>1.78</cooldownTime>
<linkedBodyPartsGroup>HeadClaw</linkedBodyPartsGroup>
<armorPenetrationSharp>0.14</armorPenetrationSharp>
<armorPenetrationBlunt>1</armorPenetrationBlunt>
<armorPenetrationSharp>0.36</armorPenetrationSharp>
<armorPenetrationBlunt>2.5</armorPenetrationBlunt>
</li>
<li Class="CombatExtended.ToolCE">
<label>head claw</label>
<capacities>
<li>Stab</li>
</capacities>
<power>15</power>
<cooldownTime>1.78</cooldownTime>
<linkedBodyPartsGroup>HeadClaw</linkedBodyPartsGroup>
<armorPenetrationSharp>4</armorPenetrationSharp>
<armorPenetrationBlunt>2</armorPenetrationBlunt>
</li>
<li Class="CombatExtended.ToolCE">
<label>head</label>
Expand Down Expand Up @@ -184,8 +196,8 @@
<power>43</power>
<cooldownTime>2.48</cooldownTime>
<linkedBodyPartsGroup>HeadClaw</linkedBodyPartsGroup>
<armorPenetrationSharp>0.5</armorPenetrationSharp>
<armorPenetrationBlunt>3.750</armorPenetrationBlunt>
<armorPenetrationSharp>1.5</armorPenetrationSharp>
<armorPenetrationBlunt>7.5</armorPenetrationBlunt>
</li>
<li Class="CombatExtended.ToolCE">
<label>head</label>
Expand Down Expand Up @@ -231,70 +243,27 @@
</value>
</Operation>

<!-- ========== Base Shuttle ========== -->
<Operation Class="PatchOperationAddModExtension">
<xpath>Defs/ThingDef[@Name="BaseShuttle"]</xpath>
<value>
<li Class="CombatExtended.RacePropertiesExtensionCE">
<bodyShape>Vehicle</bodyShape>
</li>
</value>
</Operation>

<Operation Class="PatchOperationAdd">
<xpath>Defs/ThingDef[@Name="BaseShuttle"]/statBases</xpath>
<value>
<SmokeSensitivity>0</SmokeSensitivity>
</value>
</Operation>

<!-- ========== Shuttles Armor & Melee ========== -->
<Operation Class="PatchOperationReplace">
<xpath>Defs/ThingDef[defName="ShuttlePersonalRace" or
defName="ShuttleCargoRace" or
defName="ShuttleHeavyRace"
]/statBases/ArmorRating_Blunt </xpath>
<xpath>Defs/Vehicles.VehicleDef[defName="SoS2_Shuttle_Personal" or
defName="SoS2_Shuttle" or
defName="SoS2_Shuttle_Heavy" or
defName="SoS2_Shuttle_Superheavy"
]/statBases/ArmorRating_Blunt</xpath>
<value>
<ArmorRating_Blunt>45</ArmorRating_Blunt>
</value>
</Operation>

<Operation Class="PatchOperationReplace">
<xpath>Defs/ThingDef[defName="ShuttlePersonalRace" or
defName="ShuttleCargoRace" or
defName="ShuttleHeavyRace"
<xpath>Defs/Vehicles.VehicleDef[defName="SoS2_Shuttle_Personal" or
defName="SoS2_Shuttle" or
defName="SoS2_Shuttle_Heavy" or
defName="SoS2_Shuttle_Superheavy"
]/statBases/ArmorRating_Sharp </xpath>
<value>
<ArmorRating_Sharp>13</ArmorRating_Sharp>
</value>
</Operation>

<Operation Class="PatchOperationRemove">
<xpath>Defs/ThingDef[defName="ShuttlePersonalRace" or
defName="ShuttleCargoRace" or
defName="ShuttleHeavyRace"
]/verbs </xpath>
</Operation>

<Operation Class="PatchOperationAdd">
<xpath>Defs/ThingDef[defName="ShuttlePersonalRace" or
defName="ShuttleCargoRace" or
defName="ShuttleHeavyRace"
] </xpath>
<value>
<tools>
<li Class="CombatExtended.ToolCE">
<label>hull</label>
<capacities>
<li>Blunt</li>
</capacities>
<power>35</power>
<cooldownTime>3.51</cooldownTime>
<armorPenetrationSharp>0</armorPenetrationSharp>
<armorPenetrationBlunt>15</armorPenetrationBlunt>
<alwaysTreatAsWeapon>true</alwaysTreatAsWeapon>
</li>
</tools>
</value>
</Operation>
</Patch>
Loading

0 comments on commit f121fcb

Please sign in to comment.