Skip to content

Commit

Permalink
Add some base armor to the chitin armor
Browse files Browse the repository at this point in the history
  • Loading branch information
N7Huntsman committed Nov 28, 2024
1 parent b3e11cf commit e3b0f53
Showing 1 changed file with 38 additions and 27 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<Patch>

<!-- === Plate Shoulderpads === -->
<!-- === All Armor === -->
<Operation Class="PatchOperationReplace">
<xpath>Defs/ThingDef[
defName="BMT_Apparel_ChitinMediumArmor" or
defName="BMT_Apparel_ChitinHeavyArmor" or
defName="BMT_Apparel_ChitinFullArmor"]/apparel/layers </xpath>
<value>
<layers>
<li>Shell</li>
</layers>
</value>
</Operation>

<!-- === Light Armor === -->
<Operation Class="PatchOperationReplace">
<xpath>Defs/ThingDef[defName="BMT_Apparel_ChitinLightArmor"]/statBases/Mass</xpath>
<value>
Expand All @@ -15,21 +28,12 @@
<xpath>Defs/ThingDef[defName="BMT_Apparel_ChitinLightArmor"]/statBases/StuffEffectMultiplierArmor</xpath>
<value>
<StuffEffectMultiplierArmor>3</StuffEffectMultiplierArmor>
<ArmorRating_Sharp>0.6</ArmorRating_Sharp>
<ArmorRating_Blunt>1.2</ArmorRating_Blunt>
</value>
</Operation>

<Operation Class="PatchOperationReplace">
<xpath>Defs/ThingDef[
defName="BMT_Apparel_ChitinMediumArmor" or
defName="BMT_Apparel_ChitinHeavyArmor" or
defName="BMT_Apparel_ChitinFullArmor"]/apparel/layers </xpath>
<value>
<layers>
<li>Shell</li>
</layers>
</value>
</Operation>

<!-- === Medium Armor === -->
<Operation Class="PatchOperationAdd">
<xpath>Defs/ThingDef[defName="BMT_Apparel_ChitinMediumArmor"]/statBases</xpath>
<value>
Expand All @@ -41,10 +45,13 @@
<Operation Class="PatchOperationReplace">
<xpath>Defs/ThingDef[defName="BMT_Apparel_ChitinMediumArmor"]/statBases/StuffEffectMultiplierArmor</xpath>
<value>
<StuffEffectMultiplierArmor>2.0</StuffEffectMultiplierArmor>
<StuffEffectMultiplierArmor>3.5</StuffEffectMultiplierArmor>
<ArmorRating_Sharp>1.2</ArmorRating_Sharp>
<ArmorRating_Blunt>2.4</ArmorRating_Blunt>
</value>
</Operation>

<!-- === Heavy Armor === -->
<Operation Class="PatchOperationAdd">
<xpath>Defs/ThingDef[defName="BMT_Apparel_ChitinHeavyArmor"]/statBases</xpath>
<value>
Expand All @@ -56,16 +63,14 @@
<Operation Class="PatchOperationReplace">
<xpath>Defs/ThingDef[defName="BMT_Apparel_ChitinHeavyArmor"]/statBases/StuffEffectMultiplierArmor</xpath>
<value>
<StuffEffectMultiplierArmor>3.0</StuffEffectMultiplierArmor>
<StuffEffectMultiplierArmor>4.5</StuffEffectMultiplierArmor>
<ArmorRating_Sharp>2.4</ArmorRating_Sharp>
<ArmorRating_Blunt>4.8</ArmorRating_Blunt>
</value>
</Operation>

<Operation Class="PatchOperationRemove">
<Operation Class="PatchOperationReplace">
<xpath>Defs/ThingDef[defName="BMT_Apparel_ChitinHeavyArmor"]/equippedStatOffsets/MoveSpeed</xpath>
</Operation>

<Operation Class="PatchOperationAdd">
<xpath>Defs/ThingDef[defName="BMT_Apparel_ChitinHeavyArmor"]/equippedStatOffsets</xpath>
<value>
<MeleeDodgeChance>-0.15</MeleeDodgeChance>
</value>
Expand Down Expand Up @@ -127,6 +132,7 @@
</value>
</Operation>

<!-- === Heavy Armor === -->
<Operation Class="PatchOperationAdd">
<xpath>Defs/ThingDef[defName="BMT_Apparel_ChitinFullArmor"]/statBases</xpath>
<value>
Expand All @@ -138,7 +144,9 @@
<Operation Class="PatchOperationReplace">
<xpath>Defs/ThingDef[defName="BMT_Apparel_ChitinFullArmor"]/statBases/StuffEffectMultiplierArmor</xpath>
<value>
<StuffEffectMultiplierArmor>3.5</StuffEffectMultiplierArmor>
<StuffEffectMultiplierArmor>5</StuffEffectMultiplierArmor>
<ArmorRating_Sharp>2.8</ArmorRating_Sharp>
<ArmorRating_Blunt>5.2</ArmorRating_Blunt>
</value>
</Operation>

Expand Down Expand Up @@ -209,19 +217,22 @@
</value>
</Operation>

<!-- === Helmets === -->
<Operation Class="PatchOperationReplace">
<xpath>Defs/ThingDef[defName="BMT_Apparel_ChitinFullHelmet"
or defName="BMT_Apparel_ChitinBeetleHelmet"
or defName="BMT_Apparel_ChitinSpiderHelmet"]/statBases/StuffEffectMultiplierArmor </xpath>
<xpath>Defs/ThingDef[
defName="BMT_Apparel_ChitinFullHelmet" or
defName="BMT_Apparel_ChitinBeetleHelmet" or
defName="BMT_Apparel_ChitinSpiderHelmet"]/statBases/StuffEffectMultiplierArmor </xpath>
<value>
<StuffEffectMultiplierArmor>3.5</StuffEffectMultiplierArmor>
</value>
</Operation>

<Operation Class="PatchOperationAddModExtension">
<xpath>Defs/ThingDef[defName="BMT_Apparel_ChitinFullHelmet"
or defName="BMT_Apparel_ChitinBeetleHelmet"
or defName="BMT_Apparel_ChitinSpiderHelmet"] </xpath>
<xpath>Defs/ThingDef[
defName="BMT_Apparel_ChitinFullHelmet" or
defName="BMT_Apparel_ChitinBeetleHelmet" or
defName="BMT_Apparel_ChitinSpiderHelmet"] </xpath>
<value>
<li Class="CombatExtended.PartialArmorExt">
<stats>
Expand Down

0 comments on commit e3b0f53

Please sign in to comment.