Skip to content

Commit

Permalink
Merge pull request #3284 from SamaelGray/SamaelGray-TortDegradableArmor
Browse files Browse the repository at this point in the history
Tortoise degradable armor
  • Loading branch information
N7Huntsman authored Jul 21, 2024
2 parents 57a7323 + c72edb9 commit ed723ec
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,15 @@
<xpath>Defs/ThingDef[defName="AEXP_DesertTortoise"]/statBases/ArmorRating_Blunt</xpath>

<value>
<ArmorRating_Blunt>10</ArmorRating_Blunt>
<ArmorRating_Blunt>3.25</ArmorRating_Blunt>
</value>
</Operation>

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

<value>
<ArmorRating_Sharp>1</ArmorRating_Sharp>
<ArmorRating_Sharp>1.15</ArmorRating_Sharp>
</value>
</Operation>

Expand Down Expand Up @@ -82,6 +82,29 @@
</value>
</Operation>

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

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

<!-- === Gila Monster === -->
<Operation Class="PatchOperationAdd">
<xpath>Defs/ThingDef[defName="AEXP_GilaMonster"]/statBases</xpath>
Expand Down
25 changes: 24 additions & 1 deletion Patches/Core/ThingDefs_Races/Races_Animal_Temperate.xml
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,7 @@
<Operation Class="PatchOperationReplace">
<xpath>Defs/ThingDef[defName="Tortoise"]/statBases/ArmorRating_Blunt</xpath>
<value>
<ArmorRating_Blunt>1.5</ArmorRating_Blunt>
<ArmorRating_Blunt>2</ArmorRating_Blunt>
</value>
</Operation>

Expand Down Expand Up @@ -581,4 +581,27 @@
</value>
</Operation>

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

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

</Patch>

0 comments on commit ed723ec

Please sign in to comment.