Skip to content
This repository has been archived by the owner on Apr 14, 2020. It is now read-only.

Commit

Permalink
Fix armor scaling w/ quality, health
Browse files Browse the repository at this point in the history
  • Loading branch information
NoImageAvailable committed Nov 1, 2019
1 parent 0c454e0 commit b1e2391
Showing 1 changed file with 19 additions and 10 deletions.
29 changes: 19 additions & 10 deletions Patches/Core/Stats/Stats.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,26 +31,35 @@
<xpath>Defs/StatDef[@Name = "ArmorRatingBase"]/parts/li[@Class = "StatPart_Quality"]</xpath>
<value>
<li Class="StatPart_Quality">
<factorAwful>0.7</factorAwful>
<factorPoor>0.9</factorPoor>
<factorAwful>0.5</factorAwful>
<factorPoor>0.75</factorPoor>
<factorNormal>1</factorNormal>
<factorGood>1.06</factorGood>
<factorExcellent>1.18</factorExcellent>
<factorMasterwork>1.24</factorMasterwork>
<factorLegendary>1.3</factorLegendary>
<factorGood>1.15</factorGood>
<factorExcellent>1.3</factorExcellent>
<factorMasterwork>1.5</factorMasterwork>
<factorLegendary>1.75</factorLegendary>
</li>
<li Class="StatPart_Health">
<curve>
<points>
<li>(0.0, 0.0)</li>
<li>(0.5, 0.5)</li>
<li>(0.8, 1.0)</li>
</points>
</curve>
</li>
</value>
</Operation>

<Operation Class="PatchOperationAdd">
<xpath>Defs/StatDef[defName="ArmorRating_Blunt" or defName="ArmorRating_Sharp"]</xpath>
<xpath>Defs/StatDef[defName="ArmorRating_Sharp"]</xpath>
<value>
<toStringStyle>FloatMaxThree</toStringStyle>
<toStringStyle>FloatMaxTwo</toStringStyle>
</value>
</Operation>

<Operation Class="PatchOperationReplace">
<xpath>Defs/StatDef[defName="StuffPower_Armor_Blunt" or defName="StuffPower_Armor_Sharp"]/toStringStyle</xpath>
<xpath>Defs/StatDef[defName="ArmorRating_Blunt" or defName="StuffPower_Armor_Blunt" or defName="StuffPower_Armor_Sharp"]/toStringStyle</xpath>
<value>
<toStringStyle>FloatMaxThree</toStringStyle>
</value>
Expand Down

0 comments on commit b1e2391

Please sign in to comment.