Skip to content

Commit

Permalink
Patch Mantis Race
Browse files Browse the repository at this point in the history
  • Loading branch information
N7Huntsman committed Dec 5, 2024
1 parent 56cb6f1 commit f908b0a
Show file tree
Hide file tree
Showing 6 changed files with 300 additions and 0 deletions.
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>
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>
133 changes: 133 additions & 0 deletions ModPatches/Mantis Race/Patches/Mantis Race/Race_Mantis.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
<?xml version="1.0" encoding="utf-8"?>
<Patch>

<Operation Class="PatchOperationAddModExtension">
<xpath>Defs/AlienRace.ThingDef_AlienRace[defName="Alien_Mantis"]</xpath>
<value>
<li Class="CombatExtended.RacePropertiesExtensionCE">
<bodyShape>Humanoid</bodyShape>
</li>
</value>
</Operation>

<Operation Class="PatchOperationReplace">
<xpath>Defs/AlienRace.ThingDef_AlienRace[defName="Alien_Mantis"]/statBases/MeleeDodgeChance</xpath>
<value>
<MeleeDodgeChance>1.05</MeleeDodgeChance>
<MeleeCritChance>1.05</MeleeCritChance>
<MeleeParryChance>1.05</MeleeParryChance>
<Suppressability>1</Suppressability>
<SmokeSensitivity>1</SmokeSensitivity>
</value>
</Operation>

<Operation Class="PatchOperationReplace">
<xpath>Defs/AlienRace.ThingDef_AlienRace[defName="Alien_Mantis"]/tools</xpath>
<value>
<tools>
<li Class="CombatExtended.ToolCE">
<label>left fist</label>
<capacities>
<li>Blunt</li>
</capacities>
<power>1.2</power>
<cooldownTime>1.33</cooldownTime>
<linkedBodyPartsGroup>LeftHand</linkedBodyPartsGroup>
<surpriseAttack>
<extraMeleeDamages>
<li>
<def>Stun</def>
<amount>14</amount>
</li>
</extraMeleeDamages>
</surpriseAttack>
<armorPenetrationBlunt>0.175</armorPenetrationBlunt>
</li>
<li Class="CombatExtended.ToolCE">
<label>right fist</label>
<capacities>
<li>Blunt</li>
</capacities>
<power>1.2</power>
<cooldownTime>1.33</cooldownTime>
<linkedBodyPartsGroup>RightHand</linkedBodyPartsGroup>
<surpriseAttack>
<extraMeleeDamages>
<li>
<def>Stun</def>
<amount>14</amount>
</li>
</extraMeleeDamages>
</surpriseAttack>
<armorPenetrationBlunt>0.175</armorPenetrationBlunt>
</li>
<li Class="CombatExtended.ToolCE">
<label>left claw</label>
<capacities>
<li>Cut</li>
</capacities>
<power>18</power>
<cooldownTime>1.33</cooldownTime>
<linkedBodyPartsGroup>LeftHandClawsGroup</linkedBodyPartsGroup>
<armorPenetrationSharp>6.85</armorPenetrationSharp>
<armorPenetrationBlunt>10.35</armorPenetrationBlunt>
</li>
<li Class="CombatExtended.ToolCE">
<label>right claw</label>
<capacities>
<li>Cut</li>
</capacities>
<power>18</power>
<cooldownTime>1.33</cooldownTime>
<linkedBodyPartsGroup>RightHandClawsGroup</linkedBodyPartsGroup>
<armorPenetrationSharp>6.85</armorPenetrationSharp>
<armorPenetrationBlunt>10.35</armorPenetrationBlunt>
</li>
<li Class="CombatExtended.ToolCE">
<label>teeth</label>
<capacities>
<li>Bite</li>
</capacities>
<power>9</power>
<cooldownTime>1.5</cooldownTime>
<linkedBodyPartsGroup>Teeth</linkedBodyPartsGroup>
<armorPenetrationSharp>0.24</armorPenetrationSharp>
<armorPenetrationBlunt>0.5</armorPenetrationBlunt>
</li>
<li Class="CombatExtended.ToolCE">
<label>head</label>
<capacities>
<li>Blunt</li>
</capacities>
<power>2.8</power>
<cooldownTime>4.49</cooldownTime>
<linkedBodyPartsGroup>HeadAttackTool</linkedBodyPartsGroup>
<chanceFactor>0.2</chanceFactor>
<ensureLinkedBodyPartsGroupAlwaysUsable>true</ensureLinkedBodyPartsGroupAlwaysUsable>
<armorPenetrationBlunt>0.95</armorPenetrationBlunt>
</li>
</tools>
</value>
</Operation>

<Operation Class="PatchOperationAdd">
<xpath>Defs/AlienRace.ThingDef_AlienRace[defName="Alien_Mantis"]/comps</xpath>
<value>
<li>
<compClass>CombatExtended.CompPawnGizmo</compClass>
</li>
<li Class="CombatExtended.CompProperties_ArmorDurability">
<Durability>500</Durability> <!-- 250 * (body size + HP scale) -->
<Regenerates>true</Regenerates>
<RegenInterval>600</RegenInterval>
<RegenValue>5</RegenValue>
<MinArmorPct>0.5</MinArmorPct>
</li>
<li Class="CombatExtended.CompProperties_Suppressable" />
<li>
<compClass>CombatExtended.CompAmmoGiver</compClass>
</li>
</value>
</Operation>

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

<Operation Class="PatchOperationAdd">
<xpath>Defs/ScenarioDef[defName="MantissTribeScenario"]/scenario/parts</xpath>
<value>
<li Class="ScenPart_StartingThing_Defined">
<def>StartingThing_Defined</def>
<thingDef>Ammo_12Gauge_Buck</thingDef>
<count>60</count>
</li>
</value>
</Operation>

</Patch>
1 change: 1 addition & 0 deletions SupportedThirdPartyMods.md
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,7 @@ Logann Race |
Logistics_Mechanoid |
Machines of War |
Makeshift Melee Weapons |
Mantis Race |
Marilyn the Mincho Worshipper Witch |
Mass Effect - Playable Geth |
Martens - Nature's Most Adorable Assassins |
Expand Down

0 comments on commit f908b0a

Please sign in to comment.