Difference between revisions of "Template:Melee Hit Chance/curve"

From RimWorld Wiki
Jump to navigation Jump to search
Line 1: Line 1:
<includeonly>{{#switch: {{#expr: floor({{formatnum:{{{1|}}}}}/10)}}
+
<includeonly>{{#switch: {{#expr: floor({{formatnum:{{{1|}}} }}/10)}}
 
| -2 = {{#expr: ({{{1|}}} + 20) * 0.005 + 0.05}}
 
| -2 = {{#expr: ({{{1|}}} + 20) * 0.005 + 0.05}}
 
| -1 = {{#expr: ({{{1|}}} + 10) * 0.04 + 0.1}}
 
| -1 = {{#expr: ({{{1|}}} + 10) * 0.04 + 0.1}}
Line 42: Line 42:
 
* 99999: {{Melee Hit Chance/curve|99999}}
 
* 99999: {{Melee Hit Chance/curve|99999}}
 
* asdf: {{Melee Hit Chance/curve|asdf}}
 
* asdf: {{Melee Hit Chance/curve|asdf}}
</noinclude>
+
[[Category:Math templates]]</noinclude>

Revision as of 11:13, 24 April 2023

Modified Melee Skill Curve Point
-20 0.05
-10 0.10
0.0 0.50
10 0.80
20 0.90
40 0.96
60 0.98

Testing

  • -23: 0.05
  • -20: 0.05
  • -15: 0.075
  • -3: 0.38
  • 0: 0.5
  • 8: 0.74
  • 15: 0.85
  • 25: 0.915
  • 50: 0.97
  • 59: 0.979
  • 60: 0.98
  • 99999: 0.98
  • asdf: Expression error: Unrecognized word "asdf".