Difference between revisions of "Template:Stat Factors Table"

From RimWorld Wiki
Jump to navigation Jump to search
Line 6: Line 6:
 
-->{{#vardefine: capName | {{ucfirst:{{{2|Manipulation}}}}} }}<!--
 
-->{{#vardefine: capName | {{ucfirst:{{{2|Manipulation}}}}} }}<!--
 
-->{{#vardefine: capImportance | {{Q|{{#var: statName}}|{{#var: capName}} Importance}} }}<!--
 
-->{{#vardefine: capImportance | {{Q|{{#var: statName}}|{{#var: capName}} Importance}} }}<!--
-->{{#vardefine: capLimit | {{Q|{{#var: statName}}|{{#var: capName}} Limit}} }}
+
-->{{#vardefine: capLimit | {{Q|{{#var: statName}}|{{#var: capName}} Limit}} }}<!--
{| class = "wikitable" width="180" style="text-align: center;"
+
-->{| class = "wikitable" width="180" style="text-align: center;"
 
! rowspan=2 | {{Q|{{#var: statName}}|Skill}} Skill Level
 
! rowspan=2 | {{Q|{{#var: statName}}|Skill}} Skill Level
 
! colspan=3 | {{#var: statName}}
 
! colspan=3 | {{#var: statName}}

Revision as of 11:13, 9 January 2022

Documentation icon Template documentation[view] [edit] [history] [purge]

This template generates a table of values for a stat for the full range of skill levels, as well as showing the effect of gains in a single capacity at the 100%, 125%, and 150% levels.

If the effect of the capacity is limited, then the table will only display the columns with new information, and the column headers will be replaced to demonstrate that they only apply to

This template is dependent on Template:Stat Factors Table Row.

PLEASE NOTE: This table is not suitable for every stat page. Anything with multiple controlling capacities (i.e. capacities maximums above 100%) will not be properly represented, and the template is completely incompatible with post factored statistics. It is not feasible to create detection metrics for every single stat variant, so the editor applying the template must use it correctly. Please also read the notes and limitations below.

Notes

Planned features

These features are planned to be added in the future.

  • Currently does not account for different common values for capacities.

Features under consideration

These are under consideration as to how and whether to implement them. Direct any thoughts/opinions/feedback to User: Harakoni

  • Currently(?) does not account for Global Work Speed

Known limitations

These are unlikely to change due to the format/concept of the template.

  • Does not account for multi-skill stats.
  • Does not account for multi-capacity stats.

Parameters

The first parameter (if present) will specify which stat to generate the template for. If absent, {{PAGENAME}} will be used.

The second parameter (if present) will specify which capacity to generate the template for. If absent, it will attempt to select the most important capacity, and if none are detected, it will default to only showing the skill table.

Parameters l0, l1, l2, l3, l4, l5, l6, l7, l8, l9, l10, l11, l12, l13, l14, l15, l16, l17, l18, l19, l20 are used to manually set values where they are not skill derived.

Example usage

{{Stat Factors Table}}

on the Butchery Efficiency page would produce:

Cooking Skill Level Butchery Efficiency
100% Manipulation 125% Manipulation 150% Manipulation
0 75% 91.875% 108.75%
1 77.5% 94.9375% 112.375%
2 80% 98% 116%
3 82.5% 101.0625% 119.625%
4 85% 104.125% 123.25%
5 87.5% 107.1875% 126.875%
6 90% 110.25% 130.5%
7 92.5% 113.3125% 134.125%
8 95% 116.375% 137.75%
9 97.5% 119.4375% 141.375%
10 100% 122.5% 145%
11 102.5% 125.5625% 148.625%
12 105% 128.625% 150%
13 107.5% 131.6875% 150%
14 110% 134.75% 150%
15 112.5% 137.8125% 150%
16 115% 140.875% 150%
17 117.5% 143.9375% 150%
18 120% 147% 150%
19 122.5% 150% 150%
20 125% 150% 150%
{{Stat Factors Table|Foraged Food Amount}}

on any page would produce:

Plants Skill Level Foraged Food Amount
100% Manipulation 125% Manipulation 150% Manipulation
0 0% 0% 0%
1 9% 10.125% 11.25%
2 18% 20.25% 22.5%
3 27% 30.375% 33.75%
4 36% 40.5% 45%
5 45% 50.625% 56.25%
6 54% 60.75% 67.5%
7 63% 70.875% 78.75%
8 72% 81% 90%
9 81% 91.125% 101.25%
10 90% 101.25% 112.5%
11 99% 111.375% 123.75%
12 108% 121.5% 135%
13 117% 131.625% 146.25%
14 126% 141.75% 157.5%
15 135% 151.875% 168.75%
16 144% 162% 180%
17 153% 172.125% 191.25%
18 162% 182.25% 202.5%
19 171% 192.375% 213.75%
20 180% 202.5% 225%

Example when limit is 100%:

{{Stat Factors Table|Arrest Success Chance}}

it produces:

Social Skill Level Arrest Success Chance
100% Manipulation 125% Manipulation 150% Manipulation
0 60% 73.5% 87%
1 67.5% 82.6875% 97.875%
2 75% 91.875% 100%
3 82.5% 100% 100%
4 90% 100% 100%
5 97.5% 100% 100%
6 100% 100% 100%
7 100% 100% 100%
8 100% 100% 100%
9 100% 100% 100%
10 100% 100% 100%
11 100% 100% 100%
12 100% 100% 100%
13 100% 100% 100%
14 100% 100% 100%
15 100% 100% 100%
16 100% 100% 100%
17 100% 100% 100%
18 100% 100% 100%
19 100% 100% 100%
20 100% 100% 100%

Example when limit is >100% but <125%: Note: Research Speed is not an appropriate use of the template, as it relies equally on two different capacities, however, at the time of writing no compatible example of an inter-column limit exists:

{{Stat Factors Table|Research Speed }}

on any page would produce:

Intellectual Skill Level Research Speed
100% Manipulation 125% Manipulation 150% Manipulation
0 8% 9% 10%
1 19.5% 21.9375% 24.375%
2 31% 34.875% 38.75%
3 42.5% 47.8125% 53.125%
4 54% 60.75% 67.5%
5 65.5% 73.6875% 81.875%
6 77% 86.625% 96.25%
7 88.5% 99.5625% 110.625%
8 100% 112.5% 125%
9 111.5% 125.4375% 139.375%
10 123% 138.375% 153.75%
11 134.5% 151.3125% 168.125%
12 146% 164.25% 182.5%
13 157.5% 177.1875% 196.875%
14 169% 190.125% 211.25%
15 180.5% 203.0625% 225.625%
16 192% 216% 240%
17 203.5% 228.9375% 254.375%
18 215% 241.875% 268.75%
19 226.5% 254.8125% 283.125%
20 238% 267.75% 297.5%

Example when skills have to be specifically defined:

{{Stat Factors Table|Plant Harvest Yield|l0=0.60|l1=0.70|l2=0.75|l3=0.80|l4=0.85|l5=0.90|l6=0.95|l7=0.98|l8=1.00|l9=1.01|l10=1.02|l11=1.03|l12=1.04|l13=1.05|l14=1.06|l15=1.07|l16=1.08|l17=1.09|l18=1.10|l19=1.12|l20=1.13}}

it produces:

Plants Skill Level Plant Harvest Yield
100% Manipulation 125% Manipulation 150% Manipulation
0 Expression error: Unexpected < operator.% Expression error: Unexpected < operator.% Expression error: Unexpected < operator.%
1 Expression error: Unexpected < operator.% Expression error: Unexpected < operator.% Expression error: Unexpected < operator.%
2 Expression error: Unexpected < operator.% Expression error: Unexpected < operator.% Expression error: Unexpected < operator.%
3 Expression error: Unexpected < operator.% Expression error: Unexpected < operator.% Expression error: Unexpected < operator.%
4 Expression error: Unexpected < operator.% Expression error: Unexpected < operator.% Expression error: Unexpected < operator.%
5 Expression error: Unexpected < operator.% Expression error: Unexpected < operator.% Expression error: Unexpected < operator.%
6 Expression error: Unexpected < operator.% Expression error: Unexpected < operator.% Expression error: Unexpected < operator.%
7 Expression error: Unexpected < operator.% Expression error: Unexpected < operator.% Expression error: Unexpected < operator.%
8 Expression error: Unexpected < operator.% Expression error: Unexpected < operator.% Expression error: Unexpected < operator.%
9 Expression error: Unexpected < operator.% Expression error: Unexpected < operator.% Expression error: Unexpected < operator.%
10 Expression error: Unexpected < operator.% Expression error: Unexpected < operator.% Expression error: Unexpected < operator.%
11 Expression error: Unexpected < operator.% Expression error: Unexpected < operator.% Expression error: Unexpected < operator.%
12 Expression error: Unexpected < operator.% Expression error: Unexpected < operator.% Expression error: Unexpected < operator.%
13 Expression error: Unexpected < operator.% Expression error: Unexpected < operator.% Expression error: Unexpected < operator.%
14 Expression error: Unexpected < operator.% Expression error: Unexpected < operator.% Expression error: Unexpected < operator.%
15 Expression error: Unexpected < operator.% Expression error: Unexpected < operator.% Expression error: Unexpected < operator.%
16 Expression error: Unexpected < operator.% Expression error: Unexpected < operator.% Expression error: Unexpected < operator.%
17 Expression error: Unexpected < operator.% Expression error: Unexpected < operator.% Expression error: Unexpected < operator.%
18 Expression error: Unexpected < operator.% Expression error: Unexpected < operator.% Expression error: Unexpected < operator.%
19 Expression error: Unexpected < operator.% Expression error: Unexpected < operator.% Expression error: Unexpected < operator.%
20 Expression error: Unexpected < operator.% Expression error: Unexpected < operator.% Expression error: Unexpected < operator.%