Skip to content

Commit

Permalink
Streamline shield patch
Browse files Browse the repository at this point in the history
  • Loading branch information
N7Huntsman committed Aug 17, 2024
1 parent 1bc149a commit f182d20
Showing 1 changed file with 9 additions and 86 deletions.
95 changes: 9 additions & 86 deletions ModPatches/Medieval Overhaul House Roxmont/Patches/CE_Patches.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,8 @@
</value>
</Operation>

<Operation Class="PatchOperationReplace">
<xpath>Defs/PawnKindDef[defName="DankPyon_FootmanRoxmont"]/apparelRequired</xpath>
<value>
<apparelRequired>
<li>DankPyon_Apparel_Heraldic_Hauberk_Roxmont</li>
</apparelRequired>
</value>
<Operation Class="PatchOperationRemove">
<xpath>Defs/PawnKindDef[defName="DankPyon_FootmanRoxmont"]/apparelRequired/li[.="DankPyon_ShieldHeater_Roxmont"]</xpath>
</Operation>

<Operation Class="PatchOperationAddModExtension">
Expand Down Expand Up @@ -290,85 +285,10 @@

<!-- ==================== Shield ==================== -->

<Operation Class="PatchOperationAttributeSet">
<xpath>Defs/ThingDef[defName="DankPyon_ShieldHeater_Roxmont"]</xpath>
<attribute>ParentName</attribute>
<value>ShieldBase</value>
</Operation>

<Operation Class="PatchOperationAdd">
<xpath>Defs/ThingDef[defName="DankPyon_ShieldHeater_Roxmont"]</xpath>
<value>
<costStuffCount>60</costStuffCount>
<stuffCategories>
<li>Metallic</li>
</stuffCategories>
<recipeMaker>
<researchPrerequisite>Smithing</researchPrerequisite>
<recipeUsers>
<li>ElectricSmithy</li>
<li>FueledSmithy</li>
</recipeUsers>
</recipeMaker>
<statBases>
<WorkToMake>7000</WorkToMake>
<MaxHitPoints>120</MaxHitPoints>
<Mass>4</Mass>
<Bulk>7</Bulk>
<WornBulk>4</WornBulk>
<StuffEffectMultiplierArmor>2.0</StuffEffectMultiplierArmor>
</statBases>
<equippedStatOffsets>
<ReloadSpeed>-0.25</ReloadSpeed>
<MeleeHitChance>-3</MeleeHitChance>
<ShootingAccuracyPawn>-0.4</ShootingAccuracyPawn>
<AimingAccuracy>-0.2</AimingAccuracy>
<Suppressability>-0.5</Suppressability>
<MeleeCritChance>-0.2</MeleeCritChance>
<MeleeParryChance>1.0</MeleeParryChance>
</equippedStatOffsets>
<tradeTags>
<li>Armor</li>
</tradeTags>
<weaponTags Inherit="False" />
<tools Inherit="False" />
</value>
</Operation>

<Operation Class="PatchOperationReplace">
<xpath>Defs/ThingDef[defName="DankPyon_ShieldHeater_Roxmont"]/equippedStatOffsets</xpath>
<value>
<equippedStatOffsets>
<ReloadSpeed>-0.25</ReloadSpeed>
<MeleeHitChance>-3</MeleeHitChance>
<ShootingAccuracyPawn>-0.4</ShootingAccuracyPawn>
<AimingAccuracy>-0.2</AimingAccuracy>
<Suppressability>-0.5</Suppressability>
<MeleeCritChance>-0.2</MeleeCritChance>
<MeleeParryChance>1.0</MeleeParryChance>
</equippedStatOffsets>
</value>
</Operation>

<Operation Class="PatchOperationRemove">
<xpath>Defs/ThingDef[defName="DankPyon_ShieldHeater_Roxmont"]/comps/li[@Class="VFECore.CompProperties_Shield"]</xpath>
</Operation>

<Operation Class="PatchOperationAddModExtension">
<xpath>Defs/ThingDef[defName="DankPyon_ShieldHeater_Roxmont"]</xpath>
<value>
<li Class="CombatExtended.ShieldDefExtension">
<shieldCoverage>
<li>Hands</li>
<li>Arms</li>
<li>Shoulders</li>
<li>Torso</li>
<li>Neck</li>
</shieldCoverage>
</li>
</value>
</Operation>

<Operation Class="PatchOperationAdd">
<xpath>Defs/ThingDef[defName="DankPyon_ShieldHeater_Roxmont"]</xpath>
<value>
Expand All @@ -381,24 +301,27 @@
<nodeClass>CombatExtended.PawnRenderNode_Apparel</nodeClass>
<workerClass>CombatExtended.PawnRenderNodeWorker_Drafted</workerClass>
<texPath>HouseRoxmont/Apparel/Utility/HeaterRoxmont/HeaterRoxmont</texPath>
<graphicClass>Graphic_Multi</graphicClass>
<shaderTypeDef>CutoutComplex</shaderTypeDef>
<parentTagDef>ApparelBody</parentTagDef>
<drawData>
<scale>1.0</scale>
<scale>0.55</scale>
<defaultData>
<layer>80</layer>
</defaultData>
<dataEast>
<layer>-5</layer>
<offset>(0, 0, -0.1)</offset>
<rotationOffset>30</rotationOffset>
</dataEast>
<dataWest>
<rotationOffset>-30</rotationOffset>
</dataWest>
<dataNorth>
<layer>-5</layer>
<offset>(0.15, 0, -0.1)</offset>
<offset>(0.2, 0, -0.2)</offset>
</dataNorth>
<dataSouth>
<offset>(0.3, 0, -0.2)</offset>
<offset>(0.2, 0, -0.2)</offset>
</dataSouth>
</drawData>
</li>
Expand Down

0 comments on commit f182d20

Please sign in to comment.