Skip to content

Commit

Permalink
Merge pull request #3570 from SolariusScorch/Development
Browse files Browse the repository at this point in the history
Add Xen's Spirit Wolf support
  • Loading branch information
N7Huntsman authored Nov 28, 2024
2 parents c525268 + 962be04 commit 4fdd2e1
Show file tree
Hide file tree
Showing 4 changed files with 136 additions and 1 deletion.
1 change: 1 addition & 0 deletions LoadFolders.xml
Original file line number Diff line number Diff line change
Expand Up @@ -629,6 +629,7 @@
<li IfModActive="Thek.WTB">ModPatches/Waster Toxic Breather</li>
<li IfModActive="Kyrrisayo.WeaponsPlus">ModPatches/Weapons+</li>
<li IfModActive="Owlchemist.Windows">ModPatches/Windows</li>
<li IfModActive="forestfey.SpiritWolf">ModPatches/Xen's Spirit Wolf</li>
<li IfModActive="Mlie.XennRace">ModPatches/Xenn</li>
<li IfModActive="Albion.Xenohumans">ModPatches/Xenohumans</li>
<li IfModActive="AveryTheKitty.XenohumansAnthromorphs">ModPatches/Xenohumans - Anthromorphs</li>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
<?xml version="1.0" encoding="utf-8"?>
<Patch>

<!-- ========== Spirit Wolf ========== -->

<Operation Class="PatchOperationAddModExtension">
<xpath>Defs/ThingDef[defName="XenSpiritWolf"]</xpath>
<value>
<li Class="CombatExtended.RacePropertiesExtensionCE">
<bodyShape>Quadruped</bodyShape>
</li>
</value>
</Operation>

<Operation Class="PatchOperationReplace">
<xpath>Defs/ThingDef[defName="XenSpiritWolf"]/statBases/MoveSpeed</xpath>
<value>
<MoveSpeed>7.2</MoveSpeed>
</value>
</Operation>

<Operation Class="PatchOperationAdd">
<xpath>Defs/ThingDef[defName="XenSpiritWolf"]/statBases</xpath>
<value>
<ArmorRating_Blunt>0.24</ArmorRating_Blunt>
<ArmorRating_Sharp>0.16</ArmorRating_Sharp>
<MeleeDodgeChance>0.24</MeleeDodgeChance>
<MeleeCritChance>0.24</MeleeCritChance>
<MeleeParryChance>0.13</MeleeParryChance>
</value>
</Operation>

<Operation Class="PatchOperationReplace">
<xpath>Defs/ThingDef[defName="XenSpiritWolf"]/tools</xpath>
<value>
<tools>
<li Class="CombatExtended.ToolCE">
<label>left claw</label>
<capacities>
<li>Scratch</li>
</capacities>
<power>16</power>
<cooldownTime>0.75</cooldownTime>
<linkedBodyPartsGroup>FrontLeftPaw</linkedBodyPartsGroup>
<surpriseAttack>
<extraMeleeDamages>
<li>
<def>Stun</def>
<amount>20</amount>
</li>
</extraMeleeDamages>
</surpriseAttack>
<armorPenetrationBlunt>3.350</armorPenetrationBlunt>
<armorPenetrationSharp>1</armorPenetrationSharp>
</li>
<li Class="CombatExtended.ToolCE">
<label>right claw</label>
<capacities>
<li>Scratch</li>
</capacities>
<power>16</power>
<cooldownTime>0.75</cooldownTime>
<linkedBodyPartsGroup>FrontRightPaw</linkedBodyPartsGroup>
<surpriseAttack>
<extraMeleeDamages>
<li>
<def>Stun</def>
<amount>20</amount>
</li>
</extraMeleeDamages>
</surpriseAttack>
<armorPenetrationBlunt>3.350</armorPenetrationBlunt>
<armorPenetrationSharp>1</armorPenetrationSharp>
</li>
<li Class="CombatExtended.ToolCE">
<label>fangs</label>
<capacities>
<li>Bite</li>
</capacities>
<power>30</power>
<cooldownTime>1.72</cooldownTime>
<linkedBodyPartsGroup>Teeth</linkedBodyPartsGroup>
<surpriseAttack>
<extraMeleeDamages>
<li>
<def>Stun</def>
<amount>20</amount>
</li>
</extraMeleeDamages>
</surpriseAttack>
<chanceFactor>0.9</chanceFactor>
<armorPenetrationSharp>1.75</armorPenetrationSharp>
<armorPenetrationBlunt>9.15</armorPenetrationBlunt>
</li>
<li Class="CombatExtended.ToolCE">
<label>head</label>
<capacities>
<li>Blunt</li>
</capacities>
<power>8</power>
<cooldownTime>3.2</cooldownTime>
<linkedBodyPartsGroup>HeadAttackTool</linkedBodyPartsGroup>
<chanceFactor>0.2</chanceFactor>
<armorPenetrationBlunt>2.350</armorPenetrationBlunt>
</li>
</tools>
</value>
</Operation>

<Operation Class="PatchOperationConditional">
<xpath>Defs/ThingDef[defName="XenSpiritWolf"]/comps</xpath>
<nomatch Class="PatchOperationAdd">
<xpath>Defs/ThingDef[defName="XenSpiritWolf"]</xpath>
<value>
<comps />
</value>
</nomatch>
</Operation>

<Operation Class="PatchOperationAdd">
<xpath>Defs/ThingDef[defName="XenSpiritWolf"]/comps</xpath>
<value>
<li Class="CombatExtended.CompProperties_ArmorDurability">
<Durability>4035</Durability>
<Regenerates>true</Regenerates>
<RegenInterval>600</RegenInterval>
<RegenValue>5</RegenValue>
<MinArmorPct>0.5</MinArmorPct>
</li>
</value>
</Operation>

</Patch>
2 changes: 1 addition & 1 deletion Patches/Core/ThingDefs_Races/Races_Humanlike.xml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
<compClass>CombatExtended.CompPawnGizmo</compClass>
</li>
<li Class="CombatExtended.CompProperties_ArmorDurability">
<Durability>500</Durability>
<Durability>500</Durability> <!-- 250 * (body size + HP scale) -->
<Regenerates>true</Regenerates>
<RegenInterval>600</RegenInterval>
<RegenValue>5</RegenValue>
Expand Down
1 change: 1 addition & 0 deletions SupportedThirdPartyMods.md
Original file line number Diff line number Diff line change
Expand Up @@ -605,6 +605,7 @@ Weapons+ |
WWII German Uniforms - V's Edit |
WWII Soviet Faction |
Windows |
Xen's Spirit Wolf |
Xenn Race |
Xenohumans - Anthromorphs |
Xenohumans Expanded |
Expand Down

0 comments on commit 4fdd2e1

Please sign in to comment.