Template:DP100moves: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
| Line 7: | Line 7: | ||
=== Usage === | === Usage === | ||
'''Arguments:''' | '''Arguments:''' | ||
* first argument should be the volume (in | * first argument should be the volume (in old internal volume system) | ||
* second argument should be the weight (in | * second argument should be the weight (in old internal weight system) | ||
* third argument should be the total damage value (bash/pierce/cut etc all added together, cant be zero) | * third argument should be the total damage value (bash/pierce/cut etc all added together, cant be zero) | ||
Latest revision as of 16:56, 18 September 2020
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 old internal volume system)
- second argument should be the weight (in old internal weight system)
- 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