Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Patch Mantis Race #3583

Merged
merged 4 commits into from
Dec 7, 2024
Merged
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
1 change: 1 addition & 0 deletions LoadFolders.xml
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,7 @@
<li IfModActive="Killathon.MechHumanlikes.MilitaryTiers">ModPatches/MH Military Tiers</li>
<li IfModActive="EL.MOW">ModPatches/Machines of War</li>
<li IfModActive="DetVisor.Makeshiftweapons">ModPatches/Makeshift Melee Weapons</li>
<li IfModActive="goudaquiche.LtfMantisRace">ModPatches/Mantis Race</li>
<li IfModActive="Sig.MantodeanRace">ModPatches/Mantodean Insectoid Race</li>
<li IfModActive="SutSutMan.MarilyntheMinchoWorshipperWitch">ModPatches/Marilyn the Mincho Worshipper Witch</li>
<li IfModActive="RaZim.ZGFMartens">ModPatches/Martens - Nature's Most Adorable Assassins</li>
Expand Down
107 changes: 107 additions & 0 deletions ModPatches/Mantis Race/Patches/Mantis Race/Bodies_Mantis.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
<?xml version="1.0" encoding="utf-8"?>
<Patch>

<!-- ==================== Mantis ==================== -->

<!-- Add Armor Coverage -->

<Operation Class="PatchOperationAdd">
<xpath>Defs/BodyDef[defName="Mantis"]/corePart/groups</xpath>
<value>
<li>CoveredByNaturalArmor</li>
</value>
</Operation>

<Operation Class="PatchOperationAdd">
<xpath>Defs/BodyDef[defName="Mantis"]/corePart/parts/li[def="Neck"]/groups</xpath>
<value>
<li>CoveredByNaturalArmor</li>
</value>
</Operation>

<Operation Class="PatchOperationAdd">
<xpath>Defs/BodyDef[defName="Mantis"]/corePart/parts/li[def="Neck"]/parts/li[def="Head"]/groups</xpath>
<value>
<li>CoveredByNaturalArmor</li>
</value>
</Operation>

<Operation Class="PatchOperationAdd">
<xpath>Defs/BodyDef[defName="Mantis"]/corePart/parts/li[def="Neck"]/parts/li[def="Head"]/parts/li[def="Antenna"]/groups</xpath>
<value>
<li>CoveredByNaturalArmor</li>
</value>
</Operation>

<Operation Class="PatchOperationAdd">
<xpath>Defs/BodyDef[defName="Mantis"]/corePart/parts/li[def="Neck"]/parts/li[def="Head"]/parts/li[def="Jaw"]/groups</xpath>
<value>
<li>CoveredByNaturalArmor</li>
</value>
</Operation>

<Operation Class="PatchOperationAdd">
<xpath>Defs/BodyDef[defName="Mantis"]/corePart/parts/li[def="Neck"]/parts/li[def="Head"]/parts/li[def="Nose"]/groups</xpath>
<value>
<li>CoveredByNaturalArmor</li>
</value>
</Operation>

<Operation Class="PatchOperationAdd">
<xpath>Defs/BodyDef[defName="Mantis"]/corePart/parts/li[def="Neck"]/parts/li[def="Head"]/parts/li[def="Ear"]/groups</xpath>
<value>
<li>CoveredByNaturalArmor</li>
</value>
</Operation>

<Operation Class="PatchOperationAdd">
<xpath>Defs/BodyDef[defName="Mantis"]/corePart/parts/li[def="Shoulder"]/groups</xpath>
<value>
<li>CoveredByNaturalArmor</li>
</value>
</Operation>

<Operation Class="PatchOperationAdd">
<xpath>Defs/BodyDef[defName="Mantis"]/corePart/parts/li[def="Shoulder"]/parts/li[def="Arm"]/groups</xpath>
<value>
<li>CoveredByNaturalArmor</li>
</value>
</Operation>

<Operation Class="PatchOperationAdd">
<xpath>Defs/BodyDef[defName="Mantis"]/corePart/parts/li[def="Shoulder"]/parts/li[def="Arm"]/parts/li[def="Hand"]/groups</xpath>
<value>
<li>CoveredByNaturalArmor</li>
</value>
</Operation>

<Operation Class="PatchOperationAdd">
<xpath>Defs/BodyDef[defName="Mantis"]/corePart/parts/li[def="Shoulder"]/parts/li[def="Arm"]/parts/li[def="Hand"]/parts/li[def="BodyPart_LTF_RightClaws"]/groups</xpath>
<value>
<li>CoveredByNaturalArmor</li>
</value>
</Operation>

<Operation Class="PatchOperationAdd">
<xpath>Defs/BodyDef[defName="Mantis"]/corePart/parts/li[def="Leg"]/groups</xpath>
<value>
<li>CoveredByNaturalArmor</li>
</value>
</Operation>

<Operation Class="PatchOperationAdd">
<xpath>Defs/BodyDef[defName="Mantis"]/corePart/parts/li[def="Leg"]/parts/li[def="Foot"]/groups</xpath>
<value>
<li>CoveredByNaturalArmor</li>
</value>
</Operation>

<Operation Class="PatchOperationAdd">
<xpath>Defs/BodyDef[defName="Mantis"]/corePart/parts/li[def="Leg"]/parts/li[def="Foot"]/parts/li[def="Toe"]/groups</xpath>
<value>
<li>CoveredByNaturalArmor</li>
</value>
</Operation>


</Patch>
201 changes: 201 additions & 0 deletions ModPatches/Mantis Race/Patches/Mantis Race/Hediff_Mantis.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,201 @@
<?xml version="1.0" encoding="utf-8"?>
<Patch>

<!-- Plasteel Claws -->
<Operation Class="PatchOperationReplace">
<xpath>Defs/HediffDef[@Name="Hediff_LTF_PlasteelClaws"]/comps/li[@Class="HediffCompProperties_VerbGiver"]/tools</xpath>
<value>
<tools>
<li Class="CombatExtended.ToolCE">
<label>claw</label>
<capacities>
<li>Cut</li>
</capacities>
<power>12</power>
<cooldownTime>1.29</cooldownTime>
<armorPenetrationSharp>8.35</armorPenetrationSharp>
<armorPenetrationBlunt>12.35</armorPenetrationBlunt>
<alwaysTreatAsWeapon>true</alwaysTreatAsWeapon>
</li>
<li Class="CombatExtended.ToolCE">
<label>claw</label>
<capacities>
<li>Stab</li>
</capacities>
<power>9</power>
<cooldownTime>1.59</cooldownTime>
<armorPenetrationSharp>10.65</armorPenetrationSharp>
<armorPenetrationBlunt>12.35</armorPenetrationBlunt>
<alwaysTreatAsWeapon>true</alwaysTreatAsWeapon>
</li>
</tools>
</value>
</Operation>

<!-- Over Claws -->
<Operation Class="PatchOperationReplace">
<xpath>Defs/HediffDef[@Name="Hediff_LTF_OverClaws"]/comps/li[@Class="HediffCompProperties_VerbGiver"]/tools</xpath>
<value>
<tools>
<li Class="CombatExtended.ToolCE">
<label>edge</label>
<capacities>
<li>Cut</li>
</capacities>
<power>18</power>
<cooldownTime>1.29</cooldownTime>
<armorPenetrationSharp>10.65</armorPenetrationSharp>
<armorPenetrationBlunt>14.8</armorPenetrationBlunt>
<alwaysTreatAsWeapon>true</alwaysTreatAsWeapon>
</li>
<li Class="CombatExtended.ToolCE">
<label>claw point</label>
<capacities>
<li>Stab</li>
</capacities>
<power>14</power>
<cooldownTime>1.59</cooldownTime>
<armorPenetrationSharp>14.65</armorPenetrationSharp>
<armorPenetrationBlunt>12.4</armorPenetrationBlunt>
<alwaysTreatAsWeapon>true</alwaysTreatAsWeapon>
</li>
<li Class="CombatExtended.ToolCE">
<label>blade flat</label>
<capacities>
<li>Blunt</li>
</capacities>
<power>8</power>
<cooldownTime>1.59</cooldownTime>
<armorPenetrationBlunt>8.8</armorPenetrationBlunt>
<alwaysTreatAsWeapon>true</alwaysTreatAsWeapon>
</li>
</tools>
</value>
</Operation>

<!-- Steel Claws -->
<Operation Class="PatchOperationReplace">
<xpath>Defs/HediffDef[@Name="Hediff_LTF_SteelClaws"]/comps/li[@Class="HediffCompProperties_VerbGiver"]/tools</xpath>
<value>
<tools>
<li Class="CombatExtended.ToolCE">
<label>claw</label>
<capacities>
<li>Cut</li>
</capacities>
<power>10</power>
<cooldownTime>1.29</cooldownTime>
<armorPenetrationSharp>7.14</armorPenetrationSharp>
<armorPenetrationBlunt>10.85</armorPenetrationBlunt>
<alwaysTreatAsWeapon>true</alwaysTreatAsWeapon>
</li>
<li Class="CombatExtended.ToolCE">
<label>claw</label>
<capacities>
<li>Stab</li>
</capacities>
<power>5</power>
<cooldownTime>1.59</cooldownTime>
<armorPenetrationSharp>9.65</armorPenetrationSharp>
<armorPenetrationBlunt>8.3</armorPenetrationBlunt>
<alwaysTreatAsWeapon>true</alwaysTreatAsWeapon>
</li>
</tools>
</value>
</Operation>

<!-- Wooden Claws -->
<Operation Class="PatchOperationReplace">
<xpath>Defs/HediffDef[@Name="Hediff_LTF_WoodenClaws"]/comps/li[@Class="HediffCompProperties_VerbGiver"]/tools</xpath>
<value>
<tools>
<li Class="CombatExtended.ToolCE">
<label>claw</label>
<capacities>
<li>Scratch</li>
</capacities>
<power>8</power>
<cooldownTime>1.39</cooldownTime>
<armorPenetrationSharp>3.26</armorPenetrationSharp>
<armorPenetrationBlunt>6.4</armorPenetrationBlunt>
</li>
<li Class="CombatExtended.ToolCE">
<label>claw</label>
<capacities>
<li>Poke</li>
</capacities>
<power>4</power>
<cooldownTime>1.59</cooldownTime>
<armorPenetrationSharp>9.65</armorPenetrationSharp>
</li>
</tools>
</value>
</Operation>

<!-- Wooden Shields -->
<Operation Class="PatchOperationReplace">
<xpath>Defs/HediffDef[@Name="Hediff_LTF_WoodenShields"]/comps/li[@Class="HediffCompProperties_VerbGiver"]/tools</xpath>
<value>
<tools>
<li Class="CombatExtended.ToolCE">
<label>plank</label>
<capacities>
<li>Blunt</li>
</capacities>
<power>6.2</power>
<cooldownTime>2.16</cooldownTime>
<armorPenetrationBlunt>6.4</armorPenetrationBlunt>
<surpriseAttack>
<extraMeleeDamages>
<li>
<def>Stun</def>
<amount>5</amount>
</li>
</extraMeleeDamages>
</surpriseAttack>
</li>
<li Class="CombatExtended.ToolCE">
<label>corner</label>
<capacities>
<li>Poke</li>
</capacities>
<power>4.8</power>
<cooldownTime>1.94</cooldownTime>
<armorPenetrationBlunt>6.4</armorPenetrationBlunt>
</li>
</tools>
</value>
</Operation>

<!-- ToxiClaws -->
<Operation Class="PatchOperationReplace">
<xpath>Defs/HediffDef[@Name="Hediff_LTF_ToxiClaws"]/comps/li[@Class="HediffCompProperties_VerbGiver"]/tools</xpath>
<value>
<tools>
<li Class="CombatExtended.ToolCE">
<label>claw</label>
<capacities>
<li>Cut</li>
</capacities>
<power>14</power>
<cooldownTime>1.29</cooldownTime>
<armorPenetrationSharp>8.35</armorPenetrationSharp>
<armorPenetrationBlunt>12.35</armorPenetrationBlunt>
<alwaysTreatAsWeapon>true</alwaysTreatAsWeapon>
</li>
<li Class="CombatExtended.ToolCE">
<label>toxic device</label>
<capacities>
<li>ToxicBite</li>
</capacities>
<power>9</power>
<cooldownTime>1.59</cooldownTime>
<armorPenetrationSharp>10.65</armorPenetrationSharp>
<armorPenetrationBlunt>12.35</armorPenetrationBlunt>
<alwaysTreatAsWeapon>true</alwaysTreatAsWeapon>
</li>
</tools>
</value>
</Operation>

</Patch>
43 changes: 43 additions & 0 deletions ModPatches/Mantis Race/Patches/Mantis Race/PawnKind_Mantis.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<?xml version="1.0" encoding="utf-8"?>
<Patch>

<!-- Civilian Base -->
<Operation Class="PatchOperationAddModExtension">
<xpath>Defs/PawnKindDef[@Name="MantisCivBase"]</xpath>
<value>
<li Class="CombatExtended.LoadoutPropertiesExtension">
<primaryMagazineCount>
<min>3</min>
<max>4</max>
</primaryMagazineCount>
</li>
</value>
</Operation>

<!-- Military Base -->
<Operation Class="PatchOperationAddModExtension">
<xpath>Defs/PawnKindDef[@Name="MantisMilBase"]</xpath>
<value>
<li Class="CombatExtended.LoadoutPropertiesExtension">
<primaryMagazineCount>
<min>4</min>
<max>6</max>
</primaryMagazineCount>
</li>
</value>
</Operation>

<!-- Mantis Spacer Soldier -->
<Operation Class="PatchOperationAddModExtension">
<xpath>Defs/PawnKindDef[defName="MantisSpaceSoldier"]</xpath>
<value>
<li Class="CombatExtended.LoadoutPropertiesExtension">
<primaryMagazineCount>
<min>6</min>
<max>8</max>
</primaryMagazineCount>
</li>
</value>
</Operation>

</Patch>
Loading
Loading