Skip to content

Commit

Permalink
Revert armor values and change parent of chitin
Browse files Browse the repository at this point in the history
  • Loading branch information
Sirderpsalot0357 authored Nov 21, 2024
1 parent 1286ed8 commit a4a371c
Showing 1 changed file with 29 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,62 +1,82 @@
<?xml version="1.0" encoding="utf-8"?>
<Patch>
<!-- Changes the parent of chitin/shells from LeatherBase to ResourceBase-->
<Operation Class="PatchOperationAttributeSet">
<xpath>Defs/ThingDef[@Name="BiomesCore_ChitinBase"]</xpath>
<attribute>ParentName</attribute>
<value>ResourceBase</value>
</Operation>

<Operation Class="PatchOperationAdd">
<xpath>Defs/ThingDef[@Name="BiomesCore_ChitinBase"]</xpath>
<value>
<thingCategories>
<li>ResourcesRaw</li>
</thingCategories>
</value>
</Operation>

<!-- Removes the Leathery tag from chitin/shells-->
<Operation Class="PatchOperationRemove">
<xpath>Defs/ThingDef[@Name="BiomesCore_ChitinBase"]/stuffProps/categories/li[text()="Leathery"]</xpath>
</Operation>

<!-- Crab leather -->
<Operation Class="PatchOperationReplace">
<xpath>Defs/ThingDef[defName="BiomesCore_CrabShell"]/statBases/StuffPower_Armor_Sharp</xpath>
<value>
<StuffPower_Armor_Sharp>0.1</StuffPower_Armor_Sharp>
<StuffPower_Armor_Sharp>1.0</StuffPower_Armor_Sharp>
</value>
</Operation>

<Operation Class="PatchOperationReplace">
<xpath>Defs/ThingDef[defName="BiomesCore_CrabShell"]/statBases/StuffPower_Armor_Blunt</xpath>
<value>
<StuffPower_Armor_Blunt>0.02</StuffPower_Armor_Blunt>
<StuffPower_Armor_Blunt>0.2</StuffPower_Armor_Blunt>
</value>
</Operation>

<!--greenchitin -->
<Operation Class="PatchOperationReplace">
<xpath>Defs/ThingDef[defName="BiomesCore_GreenChitin"]/statBases/StuffPower_Armor_Sharp</xpath>
<value>
<StuffPower_Armor_Sharp>0.06</StuffPower_Armor_Sharp>
<StuffPower_Armor_Sharp>0.6</StuffPower_Armor_Sharp>
</value>
</Operation>

<Operation Class="PatchOperationReplace">
<xpath>Defs/ThingDef[defName="BiomesCore_GreenChitin"]/statBases/StuffPower_Armor_Blunt</xpath>
<value>
<StuffPower_Armor_Blunt>0.06</StuffPower_Armor_Blunt>
<StuffPower_Armor_Blunt>0.6</StuffPower_Armor_Blunt>
</value>
</Operation>

<!-- gray chitin -->
<Operation Class="PatchOperationReplace">
<xpath>Defs/ThingDef[defName="BMT_GrayChitin"]/statBases/StuffPower_Armor_Sharp</xpath>
<value>
<StuffPower_Armor_Sharp>0.04</StuffPower_Armor_Sharp>
<StuffPower_Armor_Sharp>0.4</StuffPower_Armor_Sharp>
</value>
</Operation>

<Operation Class="PatchOperationReplace">
<xpath>Defs/ThingDef[defName="BMT_GrayChitin"]/statBases/StuffPower_Armor_Blunt</xpath>
<value>
<StuffPower_Armor_Blunt>0.07</StuffPower_Armor_Blunt>
<StuffPower_Armor_Blunt>0.7</StuffPower_Armor_Blunt>
</value>
</Operation>

<!-- mollusk Leather -->
<Operation Class="PatchOperationReplace">
<xpath>Defs/ThingDef[defName="BMT_Molluskshell"]/statBases/StuffPower_Armor_Sharp</xpath>
<value>
<StuffPower_Armor_Sharp>0.13</StuffPower_Armor_Sharp>
<StuffPower_Armor_Sharp>1.3</StuffPower_Armor_Sharp>
</value>
</Operation>

<Operation Class="PatchOperationReplace">
<xpath>Defs/ThingDef[defName="BMT_Molluskshell"]/statBases/StuffPower_Armor_Blunt</xpath>
<value>
<StuffPower_Armor_Blunt>0.04</StuffPower_Armor_Blunt>
<StuffPower_Armor_Blunt>0.4</StuffPower_Armor_Blunt>
</value>
</Operation>

Expand Down

0 comments on commit a4a371c

Please sign in to comment.