Difference between revisions of "Melee Hit Chance"

From RimWorld Wiki
Jump to navigation Jump to search
m (Stat Category)
 
(17 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{rewrite|reason=Outdated and not enough information on how the chance is calculated}}
+
{{stub|reason= [[Children#Stats]] - not just what is there, but how it applies in the order of operations. }}
{{stub}}
 
 
{{Stat
 
{{Stat
| default base value = 1.00
+
| default base value = 0
| min value = 0.01
+
| min value = 0
 
| to string style = PercentZero
 
| to string style = PercentZero
| description = Base chance to hit a target in melee.
+
| description = Chance to hit a target in melee. The target can still dodge even if we would've hit.
}}
+
| category = PawnCombat
 +
}}<ref>See MeleeHitChance in ''Rimworld/Data/Core/Defs/Stats/Stats_Pawns_Combat.xml''</ref>
  
==Factors==
+
== Calculation ==
* [[Skills#Melee|Melee]][[Skill::Melee| ]]:  
+
=== Base score ===
 +
The base score starts at 0 and is affected by the following things:
 +
* [[Skills#Melee|Melee]][[Skill::Melee| ]] skill: {{+|1}} per level. For pawns without skills (e.g. animals): {{+|4}}
 
* [[Sight]]: [[Sight Importance::12|12x]] importance,  no allowed defect. [[Sight Limit::1.5|150%]] limit
 
* [[Sight]]: [[Sight Importance::12|12x]] importance,  no allowed defect. [[Sight Limit::1.5|150%]] limit
 +
** <code>offset = 12 x ((IF ''sight'' < 150% THEN ''sight'' ELSE 150%) - 100%)</code> e.g. {{+|6}} at 150% sight.
 
* [[Manipulation]]: [[Manipulation Importance::12|12x]] importance,  no allowed defect. [[Manipulation Limit::1.5|150%]] limit
 
* [[Manipulation]]: [[Manipulation Importance::12|12x]] importance,  no allowed defect. [[Manipulation Limit::1.5|150%]] limit
* [[Traits]]
+
** <code>offset = 12 x ((IF ''manipulation'' < 150% THEN ''manipulation'' ELSE 150%) - 100%)</code> e.g. {{+|3}} at 125% manipulation.
** [[Traits#Brawler|Brawler]]: +75%
+
* [[Brawler]] trait: {{+|4}}
* [[Ideoligion#Melee specialist|Melee specialist role]]{{IdeologyIcon}}: +8.0
+
* [[Ideoligion#Melee specialist|Melee specialist role]] {{IdeologyIcon}}: {{+|7}}
* [[Ideoligion#Melee specialist|Melee specialist's Beserk Trance]]{{IdeologyIcon}}: +8.0
+
* [[Ideoligion#Melee specialist|Melee specialist's Beserk Trance]] {{IdeologyIcon}}: {{+|8}}
* [[Ideoligion#Leaders|Leader's Combat Command]]{{IdeologyIcon}}: +3.0
+
* [[Ideoligion#Leaders|Leader's Combat Command]] {{IdeologyIcon}}: {{+|3}}
 +
* [[Mechlord suit]] {{BiotechIcon}}: {{--|0.5}}
 +
* [[Mechlord helmet]] {{BiotechIcon}}: {{--|0.5}}
 +
 
 +
=== Post-processing curve ===
 +
The ''melee hit chance'' is then calculated with the following ''post-processing curve''. As you can see increasing the ''base score'' has diminishing returns.
 +
 
 +
{| class="wikitable"
 +
! Base score to Melee hit chance
 +
|-
 +
| {{Graph:Chart
 +
| width = 300
 +
| height = 300
 +
| type = line
 +
| xAxisTitle = Base score
 +
| yAxisTitle = Melee hit chance
 +
| x =  -20, -10,  0,  10,  20,  40,  60
 +
| y = 0.05, 0.1, 0.5, 0.8, 0.9, 0.96, 0.98
 +
| yAxisFormat = %
 +
| yAxisMax = 1
 +
| xGrid = 10
 +
| yGrid = 0.1
 +
}}
 +
|}
 +
 
 +
=== External offset ===
 +
The [[combat in darkness]] precept {{IdeologyIcon}} offsets the ''melee hit chance'' based on the [[light|light level]] of the ''targeted'' pawn (not the attacking pawn!) by {{--|10}} (lit) to {{+|10}} (dark){{Check Tag|Details needed|Exact formula unclear. Probably linear from -10 at 0% light to +10% at 100% light.}}. Other than that the light level has no effect on the ''melee hit chance''.
 +
 
 +
== Examples ==
 +
=== Melee skill and brawlers ===
 +
Assuming no other offsets to the ''base score'', the [[Skills#Melee|melee]] skill and the [[brawler]] trait results in the following ''melee hit chance'':
  
<div class="center" style="width:auto; margin-left:auto; margin-right:auto;"></div>
 
 
{| {{STDT| c_12 text-center}}
 
{| {{STDT| c_12 text-center}}
! colspan="6" style="text-align: center;" | '''Chance to hit'''
+
! colspan="6" style="text-align: center;" | '''Melee hit chance'''
 
|-
 
|-
!Skill Level
+
! Skill Level
!Standard
+
! Standard
!Brawler
+
! Brawler
!Skill Level
+
! Skill Level
!Standard
+
! Standard
!Brawler
+
! Brawler
 
|-
 
|-
!0
+
! 0
|50%
+
| {{%|{{Melee Hit Chance/curve|0}} }} || {{%|{{Melee Hit Chance/curve|0+4}} }}
|62%
 
 
! -
 
! -
| -
+
| - || -
| -
+
|-
 +
! 1
 +
| {{%|{{Melee Hit Chance/curve|1}} }} || {{%|{{Melee Hit Chance/curve|1+4}} }}
 +
! 11
 +
| {{%|{{Melee Hit Chance/curve|11}} }} || {{%|{{Melee Hit Chance/curve|11+4}} }}
 +
|-
 +
! 2
 +
| {{%|{{Melee Hit Chance/curve|2}} }} || {{%|{{Melee Hit Chance/curve|2+4}} }}
 +
! 12
 +
| {{%|{{Melee Hit Chance/curve|12}} }} || {{%|{{Melee Hit Chance/curve|12+4}} }}
 +
|-
 +
! 3
 +
| {{%|{{Melee Hit Chance/curve|3}} }} || {{%|{{Melee Hit Chance/curve|3}} }}
 +
! 13
 +
| {{%|{{Melee Hit Chance/curve|13}} }} || {{%|{{Melee Hit Chance/curve|13+4}} }}
 +
|-
 +
! 4
 +
| {{%|{{Melee Hit Chance/curve|4}} }} || {{%|{{Melee Hit Chance/curve|4+4}} }}
 +
! 14
 +
| {{%|{{Melee Hit Chance/curve|14}} }} || {{%|{{Melee Hit Chance/curve|14+4}} }}
 +
|-
 +
! 5
 +
| {{%|{{Melee Hit Chance/curve|5}} }} || {{%|{{Melee Hit Chance/curve|5+4}} }}
 +
! 15
 +
| {{%|{{Melee Hit Chance/curve|15}} }} || {{%|{{Melee Hit Chance/curve|15+4}} }}
 +
|-
 +
! 6
 +
| {{%|{{Melee Hit Chance/curve|6}} }} || {{%|{{Melee Hit Chance/curve|6+4}} }}
 +
! 16
 +
| {{%|{{Melee Hit Chance/curve|16}} }} || {{%|{{Melee Hit Chance/curve|16+4}} }}
 +
|-
 +
! 7
 +
| {{%|{{Melee Hit Chance/curve|7}} }} || {{%|{{Melee Hit Chance/curve|7+4}} }}
 +
! 17
 +
| {{%|{{Melee Hit Chance/curve|17}} }} || {{%|{{Melee Hit Chance/curve|17+4}} }}
 +
|-
 +
! 8
 +
| {{%|{{Melee Hit Chance/curve|8}} }} || {{%|{{Melee Hit Chance/curve|8+4}} }}
 +
! 18
 +
| {{%|{{Melee Hit Chance/curve|18}} }} || {{%|{{Melee Hit Chance/curve|18+4}} }}
 +
|-
 +
! 9
 +
| {{%|{{Melee Hit Chance/curve|9}} }} || {{%|{{Melee Hit Chance/curve|9+4}} }}
 +
! 19
 +
| {{%|{{Melee Hit Chance/curve|19}} }} || {{%|{{Melee Hit Chance/curve|19+4}} }}
 +
|-
 +
! 10
 +
| {{%|{{Melee Hit Chance/curve|10}} }} || {{%|{{Melee Hit Chance/curve|10+4}} }}
 +
! 20
 +
| {{%|{{Melee Hit Chance/curve|20}} }} || {{%|{{Melee Hit Chance/curve|20+4}} }}
 +
|}
 +
 
 +
=== Detailed post-processing curve ===
 +
{| class="wikitable"
 +
! Base score  !! Post-Processed<br/>Melee Hit Chance || Increase From<br/>Previous Value
 +
|-
 +
| -20 || {{%|{{Melee Hit Chance/curve|-20}}|1}} || -
 +
|-
 +
| -19 || {{%|{{Melee Hit Chance/curve|-19}}|1}} || {{%|{{Melee Hit Chance/curve|-19}} - {{Melee Hit Chance/curve|-20}}|1}}
 +
|-
 +
| -18 || {{%|{{Melee Hit Chance/curve|-18}}|1}} || {{%|{{Melee Hit Chance/curve|-18}} - {{Melee Hit Chance/curve|-19}}|1}}
 +
|-
 +
| -17 || {{%|{{Melee Hit Chance/curve|-17}}|1}} || {{%|{{Melee Hit Chance/curve|-17}} - {{Melee Hit Chance/curve|-18}}|1}}
 +
|-
 +
| -16 || {{%|{{Melee Hit Chance/curve|-16}}|1}} || {{%|{{Melee Hit Chance/curve|-16}} - {{Melee Hit Chance/curve|-17}}|1}}
 +
|-
 +
| -15 || {{%|{{Melee Hit Chance/curve|-15}}|1}} || {{%|{{Melee Hit Chance/curve|-15}} - {{Melee Hit Chance/curve|-16}}|1}}
 +
|-
 +
| -14 || {{%|{{Melee Hit Chance/curve|-14}}|1}} || {{%|{{Melee Hit Chance/curve|-14}} - {{Melee Hit Chance/curve|-15}}|1}}
 +
|-
 +
| -13 || {{%|{{Melee Hit Chance/curve|-13}}|1}} || {{%|{{Melee Hit Chance/curve|-13}} - {{Melee Hit Chance/curve|-14}}|1}}
 +
|-
 +
| -12 || {{%|{{Melee Hit Chance/curve|-12}}|1}} || {{%|{{Melee Hit Chance/curve|-12}} - {{Melee Hit Chance/curve|-13}}|1}}
 +
|-
 +
| -11 || {{%|{{Melee Hit Chance/curve|-11}}|1}} || {{%|{{Melee Hit Chance/curve|-11}} - {{Melee Hit Chance/curve|-12}}|1}}
 +
|-
 +
| -10 || {{%|{{Melee Hit Chance/curve|-10}}|1}} || {{%|{{Melee Hit Chance/curve|-10}} - {{Melee Hit Chance/curve|-11}}|1}}
 +
|-
 +
| -9 || {{%|{{Melee Hit Chance/curve|-9}}|1}} || {{%|{{Melee Hit Chance/curve|-9}} - {{Melee Hit Chance/curve|-10}}|1}}
 +
|-
 +
| -8 || {{%|{{Melee Hit Chance/curve|-8}}|1}} || {{%|{{Melee Hit Chance/curve|-8}} - {{Melee Hit Chance/curve|-9}}|1}}
 +
|-
 +
| -7 || {{%|{{Melee Hit Chance/curve|-7}}|1}} || {{%|{{Melee Hit Chance/curve|-7}} - {{Melee Hit Chance/curve|-8}}|1}}
 +
|-
 +
| -6 || {{%|{{Melee Hit Chance/curve|-6}}|1}} || {{%|{{Melee Hit Chance/curve|-6}} - {{Melee Hit Chance/curve|-7}}|1}}
 +
|-
 +
| -5 || {{%|{{Melee Hit Chance/curve|-5}}|1}} || {{%|{{Melee Hit Chance/curve|-5}} - {{Melee Hit Chance/curve|-6}}|1}}
 +
|-
 +
| -4 || {{%|{{Melee Hit Chance/curve|-4}}|1}} || {{%|{{Melee Hit Chance/curve|-4}} - {{Melee Hit Chance/curve|-5}}|1}}
 +
|-
 +
| -3 || {{%|{{Melee Hit Chance/curve|-3}}|1}} || {{%|{{Melee Hit Chance/curve|-3}} - {{Melee Hit Chance/curve|-4}}|1}}
 +
|-
 +
| -2 || {{%|{{Melee Hit Chance/curve|-2}}|1}} || {{%|{{Melee Hit Chance/curve|-2}} - {{Melee Hit Chance/curve|-3}}|1}}
 +
|-
 +
| -1 || {{%|{{Melee Hit Chance/curve|-1}}|1}} || {{%|{{Melee Hit Chance/curve|-1}} - {{Melee Hit Chance/curve|-2}}|1}}
 +
|-
 +
| 0 || {{%|{{Melee Hit Chance/curve|0}}|1}} || {{%|{{Melee Hit Chance/curve|0}} - {{Melee Hit Chance/curve|-1}}|1}}
 +
|-
 +
| 1 || {{%|{{Melee Hit Chance/curve|1}}|1}} || {{%|{{Melee Hit Chance/curve|1}} - {{Melee Hit Chance/curve|0}}|1}}
 +
|-
 +
| 2 || {{%|{{Melee Hit Chance/curve|2}}|1}} || {{%|{{Melee Hit Chance/curve|2}} - {{Melee Hit Chance/curve|1}}|1}}
 +
|-
 +
| 3 || {{%|{{Melee Hit Chance/curve|3}}|1}} || {{%|{{Melee Hit Chance/curve|3}} - {{Melee Hit Chance/curve|2}}|1}}
 +
|-
 +
| 4 || {{%|{{Melee Hit Chance/curve|4}}|1}} || {{%|{{Melee Hit Chance/curve|4}} - {{Melee Hit Chance/curve|3}}|1}}
 +
|-
 +
| 5 || {{%|{{Melee Hit Chance/curve|5}}|1}} || {{%|{{Melee Hit Chance/curve|5}} - {{Melee Hit Chance/curve|4}}|1}}
 +
|-
 +
| 6 || {{%|{{Melee Hit Chance/curve|6}}|1}} || {{%|{{Melee Hit Chance/curve|6}} - {{Melee Hit Chance/curve|5}}|1}}
 +
|-
 +
| 7 || {{%|{{Melee Hit Chance/curve|7}}|1}} || {{%|{{Melee Hit Chance/curve|7}} - {{Melee Hit Chance/curve|6}}|1}}
 +
|-
 +
| 8 || {{%|{{Melee Hit Chance/curve|8}}|1}} || {{%|{{Melee Hit Chance/curve|8}} - {{Melee Hit Chance/curve|7}}|1}}
 +
|-
 +
| 9 || {{%|{{Melee Hit Chance/curve|9}}|1}} || {{%|{{Melee Hit Chance/curve|9}} - {{Melee Hit Chance/curve|8}}|1}}
 +
|-
 +
| 10 || {{%|{{Melee Hit Chance/curve|10}}|1}} || {{%|{{Melee Hit Chance/curve|10}} - {{Melee Hit Chance/curve|9}}|1}}
 +
|-
 +
| 11 || {{%|{{Melee Hit Chance/curve|11}}|1}} || {{%|{{Melee Hit Chance/curve|11}} - {{Melee Hit Chance/curve|10}}|1}}
 +
|-
 +
| 12 || {{%|{{Melee Hit Chance/curve|12}}|1}} || {{%|{{Melee Hit Chance/curve|12}} - {{Melee Hit Chance/curve|11}}|1}}
 +
|-
 +
| 13 || {{%|{{Melee Hit Chance/curve|13}}|1}} || {{%|{{Melee Hit Chance/curve|13}} - {{Melee Hit Chance/curve|12}}|1}}
 +
|-
 +
| 14 || {{%|{{Melee Hit Chance/curve|14}}|1}} || {{%|{{Melee Hit Chance/curve|14}} - {{Melee Hit Chance/curve|13}}|1}}
 +
|-
 +
| 15 || {{%|{{Melee Hit Chance/curve|15}}|1}} || {{%|{{Melee Hit Chance/curve|15}} - {{Melee Hit Chance/curve|14}}|1}}
 +
|-
 +
| 16 || {{%|{{Melee Hit Chance/curve|16}}|1}} || {{%|{{Melee Hit Chance/curve|16}} - {{Melee Hit Chance/curve|15}}|1}}
 +
|-
 +
| 17 || {{%|{{Melee Hit Chance/curve|17}}|1}} || {{%|{{Melee Hit Chance/curve|17}} - {{Melee Hit Chance/curve|16}}|1}}
 +
|-
 +
| 18 || {{%|{{Melee Hit Chance/curve|18}}|1}} || {{%|{{Melee Hit Chance/curve|18}} - {{Melee Hit Chance/curve|17}}|1}}
 +
|-
 +
| 19 || {{%|{{Melee Hit Chance/curve|19}}|1}} || {{%|{{Melee Hit Chance/curve|19}} - {{Melee Hit Chance/curve|18}}|1}}
 +
|-
 +
| 20 || {{%|{{Melee Hit Chance/curve|20}}|1}} || {{%|{{Melee Hit Chance/curve|20}} - {{Melee Hit Chance/curve|19}}|1}}
 +
|-
 +
| 21 || {{%|{{Melee Hit Chance/curve|21}}|1}} || {{%|{{Melee Hit Chance/curve|21}} - {{Melee Hit Chance/curve|20}}|1}}
 +
|-
 +
| 22 || {{%|{{Melee Hit Chance/curve|22}}|1}} || {{%|{{Melee Hit Chance/curve|22}} - {{Melee Hit Chance/curve|21}}|1}}
 +
|-
 +
| 23 || {{%|{{Melee Hit Chance/curve|23}}|1}} || {{%|{{Melee Hit Chance/curve|23}} - {{Melee Hit Chance/curve|22}}|1}}
 +
|-
 +
| 24 || {{%|{{Melee Hit Chance/curve|24}}|1}} || {{%|{{Melee Hit Chance/curve|24}} - {{Melee Hit Chance/curve|23}}|1}}
 +
|-
 +
| 25 || {{%|{{Melee Hit Chance/curve|25}}|1}} || {{%|{{Melee Hit Chance/curve|25}} - {{Melee Hit Chance/curve|24}}|1}}
 +
|-
 +
| 26 || {{%|{{Melee Hit Chance/curve|26}}|1}} || {{%|{{Melee Hit Chance/curve|26}} - {{Melee Hit Chance/curve|25}}|1}}
 +
|-
 +
| 27 || {{%|{{Melee Hit Chance/curve|27}}|1}} || {{%|{{Melee Hit Chance/curve|27}} - {{Melee Hit Chance/curve|26}}|1}}
 +
|-
 +
| 28 || {{%|{{Melee Hit Chance/curve|28}}|1}} || {{%|{{Melee Hit Chance/curve|28}} - {{Melee Hit Chance/curve|27}}|1}}
 +
|-
 +
| 29 || {{%|{{Melee Hit Chance/curve|29}}|1}} || {{%|{{Melee Hit Chance/curve|29}} - {{Melee Hit Chance/curve|28}}|1}}
 +
|-
 +
| 30 || {{%|{{Melee Hit Chance/curve|30}}|1}} || {{%|{{Melee Hit Chance/curve|30}} - {{Melee Hit Chance/curve|29}}|1}}
 +
|-
 +
| 31 || {{%|{{Melee Hit Chance/curve|31}}|1}} || {{%|{{Melee Hit Chance/curve|31}} - {{Melee Hit Chance/curve|30}}|1}}
 +
|-
 +
| 32 || {{%|{{Melee Hit Chance/curve|32}}|1}} || {{%|{{Melee Hit Chance/curve|32}} - {{Melee Hit Chance/curve|31}}|1}}
 +
|-
 +
| 33 || {{%|{{Melee Hit Chance/curve|33}}|1}} || {{%|{{Melee Hit Chance/curve|33}} - {{Melee Hit Chance/curve|32}}|1}}
 +
|-
 +
| 34 || {{%|{{Melee Hit Chance/curve|34}}|1}} || {{%|{{Melee Hit Chance/curve|34}} - {{Melee Hit Chance/curve|33}}|1}}
 +
|-
 +
| 35 || {{%|{{Melee Hit Chance/curve|35}}|1}} || {{%|{{Melee Hit Chance/curve|35}} - {{Melee Hit Chance/curve|34}}|1}}
 +
|-
 +
| 36 || {{%|{{Melee Hit Chance/curve|36}}|1}} || {{%|{{Melee Hit Chance/curve|36}} - {{Melee Hit Chance/curve|35}}|1}}
 +
|-
 +
| 37 || {{%|{{Melee Hit Chance/curve|37}}|1}} || {{%|{{Melee Hit Chance/curve|37}} - {{Melee Hit Chance/curve|36}}|1}}
 +
|-
 +
| 38 || {{%|{{Melee Hit Chance/curve|38}}|1}} || {{%|{{Melee Hit Chance/curve|38}} - {{Melee Hit Chance/curve|37}}|1}}
 +
|-
 +
| 39 || {{%|{{Melee Hit Chance/curve|39}}|1}} || {{%|{{Melee Hit Chance/curve|39}} - {{Melee Hit Chance/curve|38}}|1}}
 +
|-
 +
| 40 || {{%|{{Melee Hit Chance/curve|40}}|1}} || {{%|{{Melee Hit Chance/curve|40}} - {{Melee Hit Chance/curve|39}}|1}}
 
|-
 
|-
!1
+
| 41 || {{%|{{Melee Hit Chance/curve|41}}|1}} || {{%|{{Melee Hit Chance/curve|41}} - {{Melee Hit Chance/curve|40}}|1}}
|53%
 
|65%
 
!11
 
|81%
 
|85%
 
 
|-
 
|-
!2
+
| 42 || {{%|{{Melee Hit Chance/curve|42}}|1}} || {{%|{{Melee Hit Chance/curve|42}} - {{Melee Hit Chance/curve|41}}|1}}
|56%
 
|68%
 
!12
 
|82%
 
|86%
 
 
|-
 
|-
!3
+
| 43 || {{%|{{Melee Hit Chance/curve|43}}|1}} || {{%|{{Melee Hit Chance/curve|43}} - {{Melee Hit Chance/curve|42}}|1}}
|59%
 
|71%
 
!13
 
|83%
 
|87%
 
 
|-
 
|-
!4
+
| 44 || {{%|{{Melee Hit Chance/curve|44}}|1}} || {{%|{{Melee Hit Chance/curve|44}} - {{Melee Hit Chance/curve|43}}|1}}
|62%
 
|74%
 
!14
 
|84%
 
|88%
 
 
|-
 
|-
!5
+
| 45 || {{%|{{Melee Hit Chance/curve|45}}|1}} || {{%|{{Melee Hit Chance/curve|45}} - {{Melee Hit Chance/curve|44}}|1}}
|65%
 
|77%
 
!15
 
|85%
 
|89%
 
 
|-
 
|-
!6
+
| 46 || {{%|{{Melee Hit Chance/curve|46}}|1}} || {{%|{{Melee Hit Chance/curve|46}} - {{Melee Hit Chance/curve|45}}|1}}
|68%
 
|80%
 
!16
 
|86%
 
|90%
 
 
|-
 
|-
!7
+
| 47 || {{%|{{Melee Hit Chance/curve|47}}|1}} || {{%|{{Melee Hit Chance/curve|47}} - {{Melee Hit Chance/curve|46}}|1}}
|71%
 
|81%
 
!17
 
|87%
 
|90.3%
 
 
|-
 
|-
!8
+
| 48 || {{%|{{Melee Hit Chance/curve|48}}|1}} || {{%|{{Melee Hit Chance/curve|48}} - {{Melee Hit Chance/curve|47}}|1}}
|74%
 
|82%
 
!18
 
|88%
 
|90.6%
 
 
|-
 
|-
!9
+
| 49 || {{%|{{Melee Hit Chance/curve|49}}|1}} || {{%|{{Melee Hit Chance/curve|49}} - {{Melee Hit Chance/curve|48}}|1}}
|77%
 
|83%
 
!19
 
|89%
 
|90.9%
 
 
|-
 
|-
!10
+
| 50 || {{%|{{Melee Hit Chance/curve|50}}|1}} || {{%|{{Melee Hit Chance/curve|50}} - {{Melee Hit Chance/curve|49}}|1}}
|80%
+
|-
|84%
+
| 51 || {{%|{{Melee Hit Chance/curve|51}}|1}} || {{%|{{Melee Hit Chance/curve|51}} - {{Melee Hit Chance/curve|50}}|1}}
!20
+
|-
|90%
+
| 52 || {{%|{{Melee Hit Chance/curve|52}}|1}} || {{%|{{Melee Hit Chance/curve|52}} - {{Melee Hit Chance/curve|51}}|1}}
|91.2%
+
|-
 +
| 53 || {{%|{{Melee Hit Chance/curve|53}}|1}} || {{%|{{Melee Hit Chance/curve|53}} - {{Melee Hit Chance/curve|52}}|1}}
 +
|-
 +
| 54 || {{%|{{Melee Hit Chance/curve|54}}|1}} || {{%|{{Melee Hit Chance/curve|54}} - {{Melee Hit Chance/curve|53}}|1}}
 +
|-
 +
| 55 || {{%|{{Melee Hit Chance/curve|55}}|1}} || {{%|{{Melee Hit Chance/curve|55}} - {{Melee Hit Chance/curve|54}}|1}}
 +
|-
 +
| 56 || {{%|{{Melee Hit Chance/curve|56}}|1}} || {{%|{{Melee Hit Chance/curve|56}} - {{Melee Hit Chance/curve|55}}|1}}
 +
|-
 +
| 57 || {{%|{{Melee Hit Chance/curve|57}}|1}} || {{%|{{Melee Hit Chance/curve|57}} - {{Melee Hit Chance/curve|56}}|1}}
 +
|-
 +
| 58 || {{%|{{Melee Hit Chance/curve|58}}|1}} || {{%|{{Melee Hit Chance/curve|58}} - {{Melee Hit Chance/curve|57}}|1}}
 +
|-
 +
| 59 || {{%|{{Melee Hit Chance/curve|59}}|1}} || {{%|{{Melee Hit Chance/curve|59}} - {{Melee Hit Chance/curve|58}}|1}}
 +
|-
 +
| 60 || {{%|{{Melee Hit Chance/curve|60}}|1}} || {{%|{{Melee Hit Chance/curve|60}} - {{Melee Hit Chance/curve|59}}|1}}
 
|}
 
|}
{{nav|stats|wide}}
+
 
 +
== Version history ==
 +
* [[Version/0.17.1546|0.17.1546]] - Removed post-process curve from melee hit chance so it uses the simple level-by-level tuning. It’ll be much harder to hit things now at low melee skills. Note: Default hit chance is 0.6 for pawns without skills. This equals the chance of a pawn with melee skill 6. (''This has been reverted again at some point.'')
 +
 
 +
== References ==
 +
<references/>
 +
 
 +
{{Nav|stats|wide}}
 +
{{Verified|1.4.3704}}

Latest revision as of 20:02, 6 September 2024

Melee Hit Chance is a stat: Chance to hit a target in melee. The target can still dodge even if we would've hit. Its minimum allowed value is 0%. Its default value is 0%.[1]

Calculation[edit]

Base score[edit]

The base score starts at 0 and is affected by the following things:

Post-processing curve[edit]

The melee hit chance is then calculated with the following post-processing curve. As you can see increasing the base score has diminishing returns.

Base score to Melee hit chance

External offset[edit]

The combat in darkness precept Content added by the Ideology DLC offsets the melee hit chance based on the light level of the targeted pawn (not the attacking pawn!) by −10 (lit) to +10 (dark)[Details needed]. Other than that the light level has no effect on the melee hit chance.

Examples[edit]

Melee skill and brawlers[edit]

Assuming no other offsets to the base score, the melee skill and the brawler trait results in the following melee hit chance:

Melee hit chance
Skill Level Standard Brawler Skill Level Standard Brawler
0 50% 62% - - -
1 53% 65% 11 81% 85%
2 56% 68% 12 82% 86%
3 59% 59% 13 83% 87%
4 62% 74% 14 84% 88%
5 65% 77% 15 85% 89%
6 68% 80% 16 86% 90%
7 71% 81% 17 87% 90.3%
8 74% 82% 18 88% 90.6%
9 77% 83% 19 89% 90.9%
10 80% 84% 20 90% 91.2%

Detailed post-processing curve[edit]

Base score Post-Processed
Melee Hit Chance
Increase From
Previous Value
-20 5% -
-19 5.5% 0.5%
-18 6% 0.5%
-17 6.5% 0.5%
-16 7% 0.5%
-15 7.5% 0.5%
-14 8% 0.5%
-13 8.5% 0.5%
-12 9% 0.5%
-11 9.5% 0.5%
-10 10% 0.5%
-9 14% 4%
-8 18% 4%
-7 22% 4%
-6 26% 4%
-5 30% 4%
-4 34% 4%
-3 38% 4%
-2 42% 4%
-1 46% 4%
0 50% 4%
1 53% 3%
2 56% 3%
3 59% 3%
4 62% 3%
5 65% 3%
6 68% 3%
7 71% 3%
8 74% 3%
9 77% 3%
10 80% 3%
11 81% 1%
12 82% 1%
13 83% 1%
14 84% 1%
15 85% 1%
16 86% 1%
17 87% 1%
18 88% 1%
19 89% 1%
20 90% 1%
21 90.3% 0.3%
22 90.6% 0.3%
23 90.9% 0.3%
24 91.2% 0.3%
25 91.5% 0.3%
26 91.8% 0.3%
27 92.1% 0.3%
28 92.4% 0.3%
29 92.7% 0.3%
30 93% 0.3%
31 93.3% 0.3%
32 93.6% 0.3%
33 93.9% 0.3%
34 94.2% 0.3%
35 94.5% 0.3%
36 94.8% 0.3%
37 95.1% 0.3%
38 95.4% 0.3%
39 95.7% 0.3%
40 96% 0.3%
41 96.1% 0.1%
42 96.2% 0.1%
43 96.3% 0.1%
44 96.4% 0.1%
45 96.5% 0.1%
46 96.6% 0.1%
47 96.7% 0.1%
48 96.8% 0.1%
49 96.9% 0.1%
50 97% 0.1%
51 97.1% 0.1%
52 97.2% 0.1%
53 97.3% 0.1%
54 97.4% 0.1%
55 97.5% 0.1%
56 97.6% 0.1%
57 97.7% 0.1%
58 97.8% 0.1%
59 97.9% 0.1%
60 98% 0.1%

Version history[edit]

  • 0.17.1546 - Removed post-process curve from melee hit chance so it uses the simple level-by-level tuning. It’ll be much harder to hit things now at low melee skills. Note: Default hit chance is 0.6 for pawns without skills. This equals the chance of a pawn with melee skill 6. (This has been reverted again at some point.)

References[edit]

  1. See MeleeHitChance in Rimworld/Data/Core/Defs/Stats/Stats_Pawns_Combat.xml