Editing Melee Hit Chance

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
{{stub|reason= [[Children#Stats]] - not just what is there, but how it applies in the order of operations. }}
+
{{Stub|reason=Add effect of [[light]] and biological age {{BiotechIcon}} }}
 
{{Stat
 
{{Stat
 
| default base value = 0
 
| default base value = 0
Line 7: Line 7:
 
}}<ref>See MeleeHitChance in ''Rimworld/Data/Core/Defs/Stats/Stats_Pawns_Combat.xml''</ref>
 
}}<ref>See MeleeHitChance in ''Rimworld/Data/Core/Defs/Stats/Stats_Pawns_Combat.xml''</ref>
  
== Calculation ==
+
== Base score ==
=== Base score ===
 
 
The base score starts at 0 and is affected by the following things:
 
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}}
+
* [[Skills#Melee|Melee]][[Skill::Melee| ]] skill: {{+|1}} per level
 
* [[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.
 
** <code>offset = 12 x ((IF ''sight'' < 150% THEN ''sight'' ELSE 150%) - 100%)</code> e.g. {{+|6}} at 150% sight.
Line 22: Line 21:
 
* [[Mechlord helmet]] {{BiotechIcon}}: {{--|0.5}}
 
* [[Mechlord helmet]] {{BiotechIcon}}: {{--|0.5}}
  
=== Post-processing curve ===
+
== 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.
 
The ''melee hit chance'' is then calculated with the following ''post-processing curve''. As you can see increasing the ''base score'' has diminishing returns.
  
Line 42: Line 41:
 
  }}
 
  }}
 
|}
 
|}
 
=== 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 ==
 
== Examples ==
Line 284: Line 280:
  
 
== Version history ==
 
== 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.'')
+
* [[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.
  
 
== References ==
 
== References ==
Line 290: Line 286:
  
 
{{Nav|stats|wide}}
 
{{Nav|stats|wide}}
{{Verified|1.4.3704}}
 

Please note that all contributions to RimWorld Wiki are considered to be released under the CC BY-SA 3.0 (see RimWorld Wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)