Skip to content

Commit

Permalink
Test: Pierce Dodge with overflow hit chance
Browse files Browse the repository at this point in the history
When Hit chance > 1, pawns can pierce through their opponents' dodge with a probability of (Hit chance - 1) * 0.5
  • Loading branch information
masakitenchi committed Jul 14, 2024
1 parent 52071aa commit e8d4b50
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
Binary file modified Mods/CombatExtended/Assemblies/CombatExtended.dll
Binary file not shown.
15 changes: 12 additions & 3 deletions Mods/Core_SK/Patches/Core/Stats/Stats_Pawns_Combat.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<Patch>

<Operation Class="PatchOperationReplace">
<xpath>Defs/StatDef[defName="MeleeHitChance"]/showOnPawns</xpath>
<Operation Class="SK.PatchOperationReplaceExtended">
<xpath>Defs/StatDef[defName="MeleeHitChance"]</xpath>
<value>
<postProcessCurve>
<points>
<li>(-20, 0.10)</li>
<li>(-10, 0.20)</li>
<li>(0, 0.60)</li>
<li>(10, 1.20)</li>
<li>(20, 2.00)</li>
</points>
</postProcessCurve>
<showOnPawns>true</showOnPawns>
</value>
</Operation>
Expand All @@ -14,5 +23,5 @@
<showIfUndefined>true</showIfUndefined>
</value>
</Operation>

</Patch>

0 comments on commit e8d4b50

Please sign in to comment.