Skip to content

Commit

Permalink
Add armor durability
Browse files Browse the repository at this point in the history
  • Loading branch information
N7Huntsman committed Jan 20, 2025
1 parent b535501 commit 1a86453
Show file tree
Hide file tree
Showing 7 changed files with 178 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,27 @@
</value>
</Operation>

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

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

</Patch>
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,27 @@
</value>
</Operation>

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

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

</Patch>
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,27 @@
</value>
</Operation>

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

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

</Patch>
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@
<Operation Class="PatchOperationReplace">
<xpath>Defs/ThingDef[defName="BMT_BunkerBug"]/statBases/ArmorRating_Sharp</xpath>
<value>
<ArmorRating_Sharp>13</ArmorRating_Sharp>
<ArmorRating_Sharp>16</ArmorRating_Sharp>
</value>
</Operation>

<Operation Class="PatchOperationReplace">
<xpath>Defs/ThingDef[defName="BMT_BunkerBug"]/statBases/ArmorRating_Blunt</xpath>
<value>
<ArmorRating_Blunt>26</ArmorRating_Blunt>
<ArmorRating_Blunt>28</ArmorRating_Blunt>
</value>
</Operation>

Expand Down Expand Up @@ -62,6 +62,40 @@
</value>
</Operation>

<Operation Class="PatchOperationAddModExtension">
<xpath>Defs/ThingDef[defName="BMT_BunkerBug"]</xpath>
<value>
<li Class="CombatExtended.PartialArmorExt">
<stats>
<li>
<ArmorRating_Sharp>0.6</ArmorRating_Sharp>
<parts>
<li>InsectHead</li>
<li>Antenna</li>
<li>Eye</li>
<li>Ear</li>
<li>InsectNostril</li>
<li>InsectMouth</li>
<li>HeadClaw</li>
</parts>
</li>
<li>
<ArmorRating_Blunt>0.6</ArmorRating_Blunt>
<parts>
<li>InsectHead</li>
<li>Antenna</li>
<li>Eye</li>
<li>Ear</li>
<li>InsectNostril</li>
<li>InsectMouth</li>
<li>HeadClaw</li>
</parts>
</li>
</stats>
</li>
</value>
</Operation>

<Operation Class="PatchOperationConditional">
<xpath>Defs/ThingDef[defName="BMT_BunkerBug"]/comps</xpath>
<nomatch Class="PatchOperationAdd">
Expand All @@ -76,7 +110,7 @@
<xpath>Defs/ThingDef[defName="BMT_BunkerBug"]/comps</xpath>
<value>
<li Class="CombatExtended.CompProperties_ArmorDurability">
<Durability>11500</Durability>
<Durability>11500</Durability> <!-- Bunkerbug wears a metal APC hull as a shell. -->
<Regenerates>true</Regenerates>
<RegenInterval>600</RegenInterval>
<RegenValue>5</RegenValue>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
<xpath>Defs/ThingDef[defName="BMT_SludgeCrawler"]/comps</xpath>
<value>
<li Class="CombatExtended.CompProperties_ArmorDurability">
<Durability>5000</Durability>
<Durability>1150</Durability>
<Regenerates>true</Regenerates>
<RegenInterval>600</RegenInterval>
<RegenValue>5</RegenValue>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
<xpath>Defs/ThingDef[defName="BMT_TripleSnapper"]/comps</xpath>
<value>
<li Class="CombatExtended.CompProperties_ArmorDurability">
<Durability>400</Durability>
<Durability>700</Durability>
<Regenerates>true</Regenerates>
<RegenInterval>600</RegenInterval>
<RegenValue>5</RegenValue>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,30 @@
</tools>
</value>
</Operation>

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

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

<Operation Class="PatchOperationAddModExtension">
<xpath>Defs/ThingDef[defName="BMT_MutatingTumorfishFry"]</xpath>
<value>
Expand Down Expand Up @@ -97,6 +121,29 @@
</value>
</Operation>

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

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

<Operation Class="PatchOperationAddModExtension">
<xpath>Defs/ThingDef[defName="BMT_MutatingTumorfishAdult"]</xpath>
<value>
Expand Down Expand Up @@ -145,4 +192,27 @@
</value>
</Operation>

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

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

</Patch>

0 comments on commit 1a86453

Please sign in to comment.