Skip to content

Commit

Permalink
Merge pull request #3275 from SamaelGray/SamaelGray-VFEI2
Browse files Browse the repository at this point in the history
VFE Insectoids - 2 patch
  • Loading branch information
N7Huntsman authored Sep 7, 2024
2 parents 48cb0a1 + 1f80d6e commit fd8c80c
Show file tree
Hide file tree
Showing 55 changed files with 1,708 additions and 3,040 deletions.
2 changes: 1 addition & 1 deletion LoadFolders.xml
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@
<li IfModActive="OskarPotocki.VFE.Classical">ModPatches/Vanilla Factions Expanded - Classical</li>
<li IfModActive="OskarPotocki.VFE.Deserters">ModPatches/Vanilla Factions Expanded - Deserters</li>
<li IfModActive="OskarPotocki.VFE.Empire">ModPatches/Vanilla Factions Expanded - Empire</li>
<li IfModActive="OskarPotocki.VFE.Insectoid">ModPatches/Vanilla Factions Expanded - Insectoids</li>
<li IfModActive="OskarPotocki.VFE.Insectoid2">ModPatches/Vanilla Factions Expanded - Insectoids 2</li>
<li IfModActive="OskarPotocki.VFE.Mechanoid">ModPatches/Vanilla Factions Expanded - Mechanoids</li>
<li IfModActive="OskarPotocki.VanillaFactionsExpanded.MedievalModule">ModPatches/Vanilla Factions Expanded - Medieval</li>
<li IfModActive="OskarPotocki.VFE.Pirates">ModPatches/Vanilla Factions Expanded - Pirates</li>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="utf-8"?>
<Patch>

<Operation Class="PatchOperationReplace">
<xpath>Defs/AbilityDef[defName="VFEI2_InsectGlide_Short"]/verbProperties/range</xpath>
<value>
<range>11.9</range>
</value>
</Operation>

<Operation Class="PatchOperationReplace">
<xpath>Defs/AbilityDef[defName="VFEI2_InsectGlide_Medium"]/verbProperties/range</xpath>
<value>
<range>16.9</range>
</value>
</Operation>

<Operation Class="PatchOperationReplace">
<xpath>Defs/AbilityDef[defName="VFEI2_InsectGlide_Far"]/verbProperties/range</xpath>
<value>
<range>27.9</range>
</value>
</Operation>

</Patch>
Original file line number Diff line number Diff line change
@@ -1,27 +1,26 @@
<?xml version="1.0" encoding="utf-8"?>
<Patch>

<!-- === Boomtick === -->
<Operation Class="PatchOperationAdd">
<xpath>
Defs/BodyDef[defName="VFEI_Boomtick"]//*[
Defs/BodyDef[defName="VFEI2_ClawedInsectoid"]//*[
def="Shell" or
def="Elytra" or
def="Pronotum"]
</xpath>
<value>
<groups/>
<groups />
</value>
</Operation>

<Operation Class="PatchOperationAdd">
<xpath>
Defs/BodyDef[defName="VFEI_Boomtick"]//*[
Defs/BodyDef[defName="VFEI2_ClawedInsectoid"]//*[
def="Shell" or
def="Elytra" or
def="Pronotum" or
def="InsectMouth" or
def="InsectHead"]/groups
def="InsectHead" or
def="InsectMouth"]/groups
</xpath>
<value>
<li>CoveredByNaturalArmor</li>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<?xml version="1.0" encoding="utf-8"?>
<Patch>

<Operation Class="PatchOperationConditional">
<xpath>Defs/BodyDef[defName="VFEI2_Swarmling"]/corePart/groups</xpath>
<nomatch Class="PatchOperationAdd">
<xpath>Defs/BodyDef[defName="VFEI2_Swarmling"]/corePart</xpath>
<value>
<groups />
</value>
</nomatch>
</Operation>

<Operation Class="PatchOperationConditional">
<xpath>Defs/BodyDef[defName="VFEI2_Swarmling"]/corePart/parts/li[1]/groups</xpath>
<nomatch Class="PatchOperationAdd">
<xpath>Defs/BodyDef[defName="VFEI2_Swarmling"]/corePart/parts/li[1]</xpath>
<value>
<groups />
</value>
</nomatch>
</Operation>

<Operation Class="PatchOperationAdd">
<xpath>
Defs/BodyDef[defName="VFEI2_Swarmling"]//*[
def="Shell" or
def="VFEI2_Swarmling" or
def="InsectMouth"]/groups
</xpath>
<value>
<li>CoveredByNaturalArmor</li>
</value>
</Operation>

</Patch>
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<Patch>

<Operation Class="PatchOperationAddModExtension">
<xpath>Defs/DamageDef[defName="VFEI2_AcidSpit"]</xpath>
<value>
<li Class="CombatExtended.DamageDefExtensionCE">
<harmOnlyOutsideLayers>true</harmOnlyOutsideLayers>
<isAmbientDamage>true</isAmbientDamage>
</li>
</value>
</Operation>

<Operation Class="PatchOperationReplace">
<xpath>Defs/DamageDef[defName="VFEI2_ToxicSting"]/additionalHediffs/li[hediff="VFEI2_ToxicBuildup"]/severityPerDamageDealt</xpath>
<value>
<severityPerDamageDealt>0.08</severityPerDamageDealt>
</value>
</Operation>

</Patch>
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
<?xml version="1.0" encoding="utf-8"?>
<Patch>

<Operation Class="PatchOperationAddModExtension">
<xpath>Defs/PawnKindDef[defName="VFE_Mercenary"]</xpath>
<value>
<li Class="CombatExtended.LoadoutPropertiesExtension">
<primaryMagazineCount>
<min>4</min>
<max>6</max>
</primaryMagazineCount>
<shieldMoney>
<min>1000</min>
<max>1600</max>
</shieldMoney>
<shieldTags>
<li>OutlanderShield</li>
</shieldTags>
<shieldChance>0.9</shieldChance>
<sidearms>
<li>
<sidearmMoney>
<min>400</min>
<max>800</max>
</sidearmMoney>
<weaponTags>
<li>CE_Sidearm_Melee</li>
</weaponTags>
</li>
<li>
<generateChance>0.1</generateChance>
<sidearmMoney>
<min>80</min>
<max>160</max>
</sidearmMoney>
<weaponTags>
<li>CE_FlareLauncher</li>
</weaponTags>
<magazineCount>
<min>1</min>
<max>3</max>
</magazineCount>
</li>
</sidearms>
</li>
</value>
</Operation>

<Operation Class="PatchOperationAdd">
<xpath>Defs/PawnKindDef[defName="VFE_Mercenary"]/weaponTags</xpath>
<value>
<li>IndustrialGunAdvanced</li>
</value>
</Operation>

</Patch>
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="utf-8"?>
<Patch>

<Operation Class="PatchOperationReplace">
<xpath>Defs/ThingDef[defName="VFEI2_Chitin"]/statBases/StuffPower_Armor_Sharp</xpath>
<value>
<StuffPower_Armor_Sharp>0.03</StuffPower_Armor_Sharp>
</value>
</Operation>

<Operation Class="PatchOperationReplace">
<xpath>Defs/ThingDef[defName="VFEI2_Chitin"]/statBases/StuffPower_Armor_Blunt</xpath>
<value>
<StuffPower_Armor_Blunt>0.35</StuffPower_Armor_Blunt>
</value>
</Operation>

<Operation Class="PatchOperationReplace">
<xpath>Defs/ThingDef[defName="VFEI2_Chitin"]/statBases/StuffPower_Armor_Heat</xpath>
<value>
<StuffPower_Armor_Heat>0.008</StuffPower_Armor_Heat>
</value>
</Operation>

</Patch>
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
<?xml version="1.0" encoding="utf-8"?>
<Patch>

<Operation Class="PatchOperationReplace">
<xpath>Defs/ThingDef[defName="VFEI2_Acidspitter"]/statBases/MoveSpeed</xpath>
<value>
<MoveSpeed>3.6</MoveSpeed>
<MeleeDodgeChance>0.09</MeleeDodgeChance>
<MeleeCritChance>0.41</MeleeCritChance>
<MeleeParryChance>0.38</MeleeParryChance>
</value>
</Operation>

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

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

<Operation Class="PatchOperationReplace">
<xpath>Defs/ThingDef[defName="VFEI2_Acidspitter"]/tools</xpath>
<value>
<tools>
<li Class="CombatExtended.ToolCE">
<label>head claw</label>
<capacities>
<li>Cut</li>
</capacities>
<power>47</power>
<cooldownTime>3.28</cooldownTime>
<linkedBodyPartsGroup>HeadClaw</linkedBodyPartsGroup>
<armorPenetrationSharp>1.8</armorPenetrationSharp>
<armorPenetrationBlunt>4.5</armorPenetrationBlunt>
</li>
<li Class="CombatExtended.ToolCE">
<label>mandibles</label>
<capacities>
<li>ToxicBite</li>
</capacities>
<power>24</power>
<cooldownTime>3.4</cooldownTime>
<linkedBodyPartsGroup>Mouth</linkedBodyPartsGroup>
<armorPenetrationSharp>7.12</armorPenetrationSharp>
<armorPenetrationBlunt>29.8</armorPenetrationBlunt>
</li>
<li Class="CombatExtended.ToolCE">
<label>head</label>
<capacities>
<li>Blunt</li>
</capacities>
<power>40</power>
<cooldownTime>3.65</cooldownTime>
<linkedBodyPartsGroup>HeadAttackTool</linkedBodyPartsGroup>
<ensureLinkedBodyPartsGroupAlwaysUsable>true</ensureLinkedBodyPartsGroupAlwaysUsable>
<chanceFactor>0.2</chanceFactor>
<armorPenetrationBlunt>17.5</armorPenetrationBlunt>
</li>
</tools>
</value>
</Operation>

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

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

</Patch>
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<?xml version="1.0" encoding="utf-8"?>
<Patch>

<Operation Class="PatchOperationAddModExtension">
<xpath>Defs/ThingDef[@Name="VFEI2_BaseInsect"]</xpath>
<value>
<li Class="CombatExtended.RacePropertiesExtensionCE">
<bodyShape>QuadrupedLow</bodyShape>
</li>
</value>
</Operation>

<Operation Class="PatchOperationAddModExtension">
<xpath>Defs/ThingDef[@Name="VFEI2_BaseInsect"]</xpath>
<value>
<li Class="CombatExtended.PartialArmorExt">
<stats>
<li>
<useStatic>false</useStatic>
<ArmorRating_Sharp>0.25</ArmorRating_Sharp>
<parts>
<li>InsectLeg</li>
</parts>
</li>
<li>
<useStatic>false</useStatic>
<ArmorRating_Blunt>0.25</ArmorRating_Blunt>
<parts>
<li>InsectLeg</li>
</parts>
</li>
</stats>
</li>
</value>
</Operation>

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

</Patch>
Loading

0 comments on commit fd8c80c

Please sign in to comment.