Template:DP100moves

From The Cataclysm: Dark Days Ahead Wiki
Revision as of 16:44, 18 September 2020 by Soyweiser (talk | contribs)
Jump to navigation Jump to search


Adds all damages together, and then divides it by the converted internal weight and volume values of an item to the base moves per attack cost of the item, to get the damage per 100 moves.

Formula: (total_damage / (65 + volume * 4 + weight / 60 )) * 100. Rounds down to two numbers after the comma.

Usage

Arguments:

  • first argument should be the volume (in ml)
  • second argument should be the weight (in grams)
  • third argument should be the total damage value (bash/pierce/cut etc all added together, cant be zero)

If there are not enough arguments, it returns nothing.

examples:

  • {{DP100moves|10}} turns into ""
  • {{DP100moves|0|60|1}} turns into "1.52"
  • {{DP100moves|0|60|10}} turns into "15.15"
  • {{DP100moves|10|0|33}} turns into "31.43"
  • {{DP100moves|2|2555|490}} turns into "426.09"

Uses: template:Movesperattack