Template:Weapon values by level

From Killing Floor Wiki
Jump to: navigation, search
Level  Discount Price Sale value {{{col1_name}}} {{{col2_name}}} {{{col3_name}}} {{{col4_name}}} {{{col5_name}}}
Base 0% £{{{base_cost}}} £floor({{{base_cost}}} * 0.75) {{{col1_base}}} {{{col2_base}}} {{{col3_base}}} {{{col4_base}}} {{{col5_base}}}
0 {{{discount0}}}% £floor({{{base_cost}}} * (1 - {{{discount0}}} / 100) + 0.5) £floor({{{base_cost}}} * (1 - {{{discount0}}} / 100) * 0.75 - 0.5) ({{{col1_base}}} * (1 + ({{{col1_inc0}}}) / 100)) ({{{col2_base}}} * (1 + ({{{col2_inc0}}}) / 100)) ({{{col3_base}}} * (1 + ({{{col3_inc0}}}) / 100)) ({{{col4_base}}} * (1 + ({{{col4_inc0}}}) / 100)) ({{{col5_base}}} * (1 + ({{{col5_inc0}}}) / 100))
1 {{{discount1}}}% £floor({{{base_cost}}} * (1 - {{{discount1}}} / 100) + 0.5) £floor({{{base_cost}}} * (1 - {{{discount1}}} / 100) * 0.75 - 0.5) ({{{col1_base}}} * (1 + ({{{col1_inc1}}}) / 100)) ({{{col2_base}}} * (1 + ({{{col2_inc1}}}) / 100)) ({{{col3_base}}} * (1 + ({{{col3_inc1}}}) / 100)) ({{{col4_base}}} * (1 + ({{{col4_inc1}}}) / 100)) ({{{col5_base}}} * (1 + ({{{col5_inc1}}}) / 100))
2 {{{discount2}}}% £floor({{{base_cost}}} * (1 - {{{discount2}}} / 100) + 0.5) £floor({{{base_cost}}} * (1 - {{{discount2}}} / 100) * 0.75 - 0.5) ({{{col1_base}}} * (1 + ({{{col1_inc2}}}) / 100)) ({{{col2_base}}} * (1 + ({{{col2_inc2}}}) / 100)) ({{{col3_base}}} * (1 + ({{{col3_inc2}}}) / 100)) ({{{col4_base}}} * (1 + ({{{col4_inc2}}}) / 100)) ({{{col5_base}}} * (1 + ({{{col5_inc2}}}) / 100))
3 {{{discount3}}}% £floor({{{base_cost}}} * (1 - {{{discount3}}} / 100) + 0.5) £floor({{{base_cost}}} * (1 - {{{discount3}}} / 100) * 0.75 - 0.5) ({{{col1_base}}} * (1 + ({{{col1_inc3}}}) / 100)) ({{{col2_base}}} * (1 + ({{{col2_inc3}}}) / 100)) ({{{col3_base}}} * (1 + ({{{col3_inc3}}}) / 100)) ({{{col4_base}}} * (1 + ({{{col4_inc3}}}) / 100)) ({{{col5_base}}} * (1 + ({{{col5_inc3}}}) / 100))
4 {{{discount4}}}% £floor({{{base_cost}}} * (1 - {{{discount4}}} / 100) + 0.5) £floor({{{base_cost}}} * (1 - {{{discount4}}} / 100) * 0.75 - 0.5) ({{{col1_base}}} * (1 + ({{{col1_inc4}}}) / 100)) ({{{col2_base}}} * (1 + ({{{col2_inc4}}}) / 100)) ({{{col3_base}}} * (1 + ({{{col3_inc4}}}) / 100)) ({{{col4_base}}} * (1 + ({{{col4_inc4}}}) / 100)) ({{{col5_base}}} * (1 + ({{{col5_inc4}}}) / 100))
5 {{{discount5}}}% £floor({{{base_cost}}} * (1 - {{{discount5}}} / 100) + 0.5) £floor({{{base_cost}}} * (1 - {{{discount5}}} / 100) * 0.75 - 0.5) ({{{col1_base}}} * (1 + ({{{col1_inc5}}}) / 100)) ({{{col2_base}}} * (1 + ({{{col2_inc5}}}) / 100)) ({{{col3_base}}} * (1 + ({{{col3_inc5}}}) / 100)) ({{{col4_base}}} * (1 + ({{{col4_inc5}}}) / 100)) ({{{col5_base}}} * (1 + ({{{col5_inc5}}}) / 100))
6 {{{discount6}}}% £floor({{{base_cost}}} * (1 - {{{discount6}}} / 100) + 0.5) £floor({{{base_cost}}} * (1 - {{{discount6}}} / 100) * 0.75 - 0.5) ({{{col1_base}}} * (1 + ({{{col1_inc6}}}) / 100)) ({{{col2_base}}} * (1 + ({{{col2_inc6}}}) / 100)) ({{{col3_base}}} * (1 + ({{{col3_inc6}}}) / 100)) ({{{col4_base}}} * (1 + ({{{col4_inc6}}}) / 100)) ({{{col5_base}}} * (1 + ({{{col5_inc6}}}) / 100))
[edit] [purge] Template-info.svg Template documentation

Usage[edit]

{{Weapon values by level
|style = A custom style for the table (optional)

|base_cost = The price of the weapon without a discount
|discount0 = % discount at level 0, omitting the percent symbol
|discount1 = % discount at level 1, omitting the percent symbol
|discount2 = % discount at level 2, omitting the percent symbol
|discount3 =
|discount4 =
|discount5 =
|discount6 =
|no_rounding_error = Enter "on" (without quotes) if the values do not suffer from rounding errors; otherwise, delete this line

|col1_name = The heading name for the first extra column
|col1_func = The name of a template that takes the computed value of a cell as its first argument (optional)
|col1_func_arg2 = The second argument to be passed into the template above (optional)
|col1_base = The base value
|col1_inc0 = The % increase from the base at level 0
|col1_inc1 = The % increase from the base at level 1
|col1_inc2 = The % increase from the base at level 2
|col1_inc3 =
|col1_inc4 =
|col1_inc5 =
|col1_inc6 =

|col2_name =
|col2_func =
|col2_func_arg2 =
|col2_base =
|col2_inc0 =
|col2_inc1 =
|col2_inc2 =
|col2_inc3 =
|col2_inc4 =
|col2_inc5 =
|col2_inc6 =

|col3_name =
|col3_func =
|col3_func_arg2 =
|col3_base =
|col3_inc0 =
|col3_inc1 =
|col3_inc2 =
|col3_inc3 =
|col3_inc4 =
|col3_inc5 =
|col3_inc6 =

|col4_name =
|col4_func =
|col4_func_arg2 =
|col4_base =
|col4_inc0 =
|col4_inc1 =
|col4_inc2 =
|col4_inc3 =
|col4_inc4 =
|col4_inc5 =
|col4_inc6 =
}}

Examples[edit]

En[edit]

{{Weapon values by level
|base_cost = 1000
|discount0 = 10
|discount1 = 20
|discount2 = 30
|discount3 = 40
|discount4 = 50
|discount5 = 60
|discount6 = 70

|col1_name = Damage
|col1_base = 40
|col1_inc0 = 5
|col1_inc1 = 10
|col1_inc2 = 20
|col1_inc3 = 30
|col1_inc4 = 40
|col1_inc5 = 50
|col1_inc6 = 50

|col2_name = Ammo
|col2_base = 300
|col2_inc0 = 0
|col2_inc1 = 10
|col2_inc2 = 20
|col2_inc3 = 25
|col2_inc4 = 25
|col2_inc5 = 25
|col2_inc6 = 25
}}
Level  Discount Price Sale value Damage Ammo
Base 0% £1000 £750 40 300
0 10% £900 £674 42 300
1 20% £800 £599 44 330
2 30% £700 £524 48 360
3 40% £600 £449 52 375
4 50% £500 £374 56 375
5 60% £400 £299 60 375
6 70% £300 £224 60 375
{{Weapon values by level
|base_cost = 800
|discount0 = 75
|discount1 = 78
|discount2 = 81
|discount3 = 84
|discount4 = 87
|discount5 = 90
|discount6 = 93
|no_rounding_error = on
}}
Level  Discount Price Sale value
Base 0% £800 £600
0 75% £200 £150
1 78% £176 £132
2 81% £152 £114
3 84% £128 £96
4 87% £104 £78
5 90% £80 £60
6 93% £56 £42

es[edit]

{{Weapon values by level
|lang = es
|base_cost = 1000
|discount0 = 10
|discount1 = 20
|discount2 = 30
|discount3 = 40
|discount4 = 50
|discount5 = 60
|discount6 = 70

|col1_name = Daño
|col1_base = 40
|col1_inc0 = 5
|col1_inc1 = 10
|col1_inc2 = 20
|col1_inc3 = 30
|col1_inc4 = 40
|col1_inc5 = 50
|col1_inc6 = 50

|col2_name = Munición
|col2_base = 300
|col2_inc0 = 0
|col2_inc1 = 10
|col2_inc2 = 20
|col2_inc3 = 25
|col2_inc4 = 25
|col2_inc5 = 25
|col2_inc6 = 25
}}
Nivel  Descuento Precio Valor venta Daño Munición
Base 0% £1000 £750 40 300
0 10% £900 £674 42 300
1 20% £800 £599 44 330
2 30% £700 £524 48 360
3 40% £600 £449 52 375
4 50% £500 £374 56 375
5 60% £400 £299 60 375
6 70% £300 £224 60 375
{{Weapon values by level
|lang = es
|base_cost = 800
|discount0 = 75
|discount1 = 78
|discount2 = 81
|discount3 = 84
|discount4 = 87
|discount5 = 90
|discount6 = 93
|no_rounding_error = on
}}
Nivel  Descuento Precio Valor venta
Base 0% £800 £600
0 75% £200 £150
1 78% £176 £132
2 81% £152 £114
3 84% £128 £96
4 87% £104 £78
5 90% £80 £60
6 93% £56 £42