Template:Apparel AP Calculation/Quality List

From RimWorld Wiki
Jump to navigation Jump to search

0.8, 0.9, 1, 1.1, 1.2, 1.45, 1.65

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

This template is used by Template:Damage Comparison Chart/Melee and relies on Template:Apparel AP Calculation.

It returns 7 values separated by comas, corresponding to the qualities awful, poor, normal, good, excellent, masterwork, legendary.

This template calculates the effective damage a given set of armors have against a given DPS and AP combo.

The structure is:

{{Apparel AP Calculation/Quality List|armor1=|armor2=|armor3=|armor4=|dps=|ap=}}

All values are optional. ap defaults to 0, dps to 1.

  • First, the provided values are put into Template:Apparel AP Calculation.
    • The ap value used is multiplied by the quality factor.
  • Then, the value calculated above is multiplied by the dps times the quality modifier/100.
  • This is done 7 times in total.
  • The returned value are 7 numbers separated by comas.