Template:Apparel AP Calculation/Quality List/doc

From RimWorld Wiki
< Template:Apparel AP Calculation‎ | Quality List
Revision as of 15:50, 28 February 2025 by Arcangelus (talk | contribs) (Documentation of Apparel AP Calculation/Quality List)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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.