Skip to content

Commit

Permalink
Merge pull request #3192 from SaltyKarl/SOS2-XML
Browse files Browse the repository at this point in the history
SOS2 missing hediff and description update
  • Loading branch information
N7Huntsman authored Jun 16, 2024
2 parents 7390468 + 325bc1a commit a29aecf
Show file tree
Hide file tree
Showing 2 changed files with 81 additions and 31 deletions.
84 changes: 53 additions & 31 deletions ModPatches/Save Our Ship 2/Patches/Save Our Ship 2/Hediffs_SOS2.xml
Original file line number Diff line number Diff line change
@@ -1,39 +1,61 @@
<?xml version="1.0" encoding="utf-8"?>
<Patch>
<Operation Class="PatchOperationConditional">
<xpath>Defs/ThingDef[defName="SoSPsychicPredictor"]</xpath>
<match Class="PatchOperationSequence">
<operations>
<li Class="PatchOperationReplace">
<xpath>Defs/HediffDef[defName="SoSPsychicPredictor"]/stages/li/statOffsets</xpath>
<value>
<statOffsets>
<ShootingAccuracyPawn>+1</ShootingAccuracyPawn>
<AimingAccuracy>+0.5</AimingAccuracy>
<MeleeDodgeChance>1</MeleeDodgeChance>
<MeleeCritChance>0.4</MeleeCritChance>
<MeleeParryChance>0.5</MeleeParryChance>
<Suppressability>-0.50</Suppressability>
</statOffsets>
</value>
</li>
<Operation Class="PatchOperationReplace">
<xpath>Defs/HediffDef[defName="SoSPsychicPredictor"]/stages/li/statOffsets</xpath>
<value>
<statOffsets>
<ShootingAccuracyPawn>+1</ShootingAccuracyPawn>
<AimingAccuracy>+0.5</AimingAccuracy>
<MeleeDodgeChance>1</MeleeDodgeChance>
<MeleeCritChance>0.4</MeleeCritChance>
<MeleeParryChance>0.5</MeleeParryChance>
<Suppressability>-0.50</Suppressability>
</statOffsets>
</value>
</Operation>

<li Class="PatchOperationReplace">
<xpath>Defs/HediffDef[defName="SoSArchotechSkin"]/stages/li/statOffsets/ArmorRating_Sharp</xpath>
<value>
<ArmorRating_Sharp>3</ArmorRating_Sharp>
</value>
</li>
<Operation Class="PatchOperationReplace">
<xpath>Defs/HediffDef[defName="SoSArchotechSkin"]/stages/li/statOffsets/ArmorRating_Sharp</xpath>
<value>
<ArmorRating_Sharp>8</ArmorRating_Sharp>
</value>
</Operation>

<li Class="PatchOperationReplace">
<xpath>Defs/HediffDef[defName="SoSArchotechSkin"]/stages/li/statOffsets/ArmorRating_Blunt</xpath>
<value>
<ArmorRating_Blunt>4.5</ArmorRating_Blunt>
<ArmorRating_Electric>0.4</ArmorRating_Electric>
</value>
<Operation Class="PatchOperationReplace">
<xpath>Defs/HediffDef[defName="SoSArchotechSkin"]/stages/li/statOffsets/ArmorRating_Blunt</xpath>
<value>
<ArmorRating_Blunt>12</ArmorRating_Blunt>
<ArmorRating_Electric>0.4</ArmorRating_Electric>
</value>
</Operation>

<Operation Class="PatchOperationAdd">
<xpath>Defs/HediffDef[defName="SoSArchotechLung"]/stages/li/statOffsets</xpath>
<value>
<SmokeSensitivity>-0.5</SmokeSensitivity>
<ToxicEnvironmentResistance>0.5</ToxicEnvironmentResistance>
</value>
</Operation>

<Operation Class="PatchOperationReplace">
<xpath>Defs/HediffDef[defName="SoSArchotechJaw"]/comps/li[@Class="HediffCompProperties_VerbGiver"]/tools</xpath>
<value>
<tools>
<li Class="CombatExtended.ToolCE">
<label>teeth</label>
<capacities>
<li>Bite</li>
</capacities>
<power>20</power>
<cooldownTime>2</cooldownTime>
<armorPenetrationBlunt>0.3</armorPenetrationBlunt>
<armorPenetrationSharp>5</armorPenetrationSharp>
<linkedBodyPartsGroup>HeadAttackTool</linkedBodyPartsGroup>
<soundMeleeHit>Pawn_Melee_HumanBite_Hit</soundMeleeHit>
<soundMeleeMiss>Pawn_Melee_HumanBite_Miss</soundMeleeMiss>
</li>
</operations>
</match>
</tools>
</value>
</Operation>

<Operation Class="PatchOperationConditional">
Expand Down
28 changes: 28 additions & 0 deletions ModPatches/Save Our Ship 2/Patches/Save Our Ship 2/UpgradeTree.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,13 @@
</value>
</Operation>

<Operation Class="PatchOperationReplace">
<xpath>Defs/Vehicles.UpgradeTreeDef[defName="SoS2ShuttleUpgradeTree"]/nodes/li[1]/description </xpath>
<value>
<description>Retrofit the shuttle's hull to minimize weight, trading armor for speed and fuel efficiency.\n&lt;color=#bb8f04&gt;-5 blunt armor, -3 sharp armor, +6 flight speed, +100 cargo capacity, -10 fuel consumption rate&lt;/color&gt;</description>
</value>
</Operation>

<Operation Class="PatchOperationReplace">
<xpath>Defs/Vehicles.UpgradeTreeDef[defName="SoS2ShuttleUpgradeTree"]/nodes/li[2]/upgrades/li[@Class="Vehicles.StatUpgrade"]/stats </xpath>
<value>
Expand All @@ -52,6 +59,13 @@
</value>
</Operation>

<Operation Class="PatchOperationReplace">
<xpath>Defs/Vehicles.UpgradeTreeDef[defName="SoS2ShuttleUpgradeTree"]/nodes/li[2]/description </xpath>
<value>
<description>Retrofit the shuttle's hull with additional armor plating.\n&lt;color=#bb8f04&gt;+12 blunt armor, +8 sharp armor, -6 flight speed, -250 cargo capacity, +10 fuel consumption rate&lt;/color&gt;</description>
</value>
</Operation>

<Operation Class="PatchOperationReplace">
<xpath>Defs/Vehicles.UpgradeTreeDef[defName="SoS2ShuttleUpgradeTree"]/nodes/li[3]/upgrades/li[@Class="Vehicles.StatUpgrade"]/stats </xpath>
<value>
Expand All @@ -70,6 +84,13 @@
</value>
</Operation>

<Operation Class="PatchOperationReplace">
<xpath>Defs/Vehicles.UpgradeTreeDef[defName="SoS2ShuttleUpgradeTree"]/nodes/li[3]/description </xpath>
<value>
<description>Apply a layer of vibrating mechanite chains which helps to diffuse blunt impacts.\n&lt;color=#bb8f04&gt;+6 blunt armor, +4 sharp armor, -50 cargo capacity&lt;/color&gt;</description>
</value>
</Operation>

<Operation Class="PatchOperationReplace">
<xpath>Defs/Vehicles.UpgradeTreeDef[defName="SoS2ShuttleUpgradeTree"]/nodes/li[4]/upgrades/li[@Class="Vehicles.StatUpgrade"]/stats </xpath>
<value>
Expand All @@ -87,4 +108,11 @@
</stats>
</value>
</Operation>

<Operation Class="PatchOperationReplace">
<xpath>Defs/Vehicles.UpgradeTreeDef[defName="SoS2ShuttleUpgradeTree"]/nodes/li[4]/description </xpath>
<value>
<description>[HUMAN CARAPACE\nFROM THIS COCOON I EMERGE\nTO WEAVE ONE STRONGER]\n&lt;color=#bb8f04&gt;+45 blunt armor, +13 sharp armor&lt;/color&gt;</description>
</value>
</Operation>
</Patch>

0 comments on commit a29aecf

Please sign in to comment.