Template:QCalc

From Roots of Pacha Wiki
Jump to navigation Jump to search

Calculates value for an item's stamina/contribution/buff based on a base value (normal quality) and its quality

Parameters

Position Aliases Valid values Explanation
1 base, value Any number. Default value: 1 The value at normal quality.
2 type Stamina, Contribution What property of the item is this the value of?
3 quality Normal, Good, Better, Best The quality to calculate for.
4 max Any number. Default: same as base Value at best quality. Used for calculating buff only

Note: type and quality values allow variance as follows:

  • contribution may be shortened to "Contrib".
  • Qualities may be shortened to their first letter only (lower or upper case), or BTR / BST for better / best qualities respectively
  • "Normal" quality can also be referred to as "Base" quality
  • all lowercase and all uppercase are accepted. The only combination of lower case and uppercase accepted however is when only the first letter is a capital letter (does not apply to BTR/BST quality abbreviations)

Examples

Input Explanation Result
qCalc|type=Contribution|base=20|quality=best Contribution of an item of Best Quality best quality, where its normal quality's contribution is 20 32
qCalc|type=Stamina|base=100|quality=good Stamina for a Good Quality good quality item , where its normal quality provides 100 stamina 111
qCalc|type=contrib|base=340|quality=btr Contribution (contrib) of an item of Better Quality better (btr) quality, where its normal quality's contribution is 340 476
qCalc|150|stamina|BST Stamina for a Best Quality best quality item , where its normal quality provides 150 stamina 210
qCalc|2|buff|g|4 Buff for a Good Quality good quality item , where its normal quality provides 2 of the buff, and best provides 4 3
qCalc|4|buff|Better|max=8 Buff for a Better Quality better quality item , where its normal quality provides 4 of the buff, and best provides 8 7