Template:Percent thaums/doc

From Discworld MUD Wiki
Jump to: navigation, search

  {{Percent thaums}} is used to return a ratio of the maximum thaums that will fit in an item based on its weight, floored to the nearest whole number.

Arguments
  • 1st argument: weight of the item
  • 2nd argument: floored ratio (like "0.5", not a percentage) of maximum enchant to return

Example

{{Percent thaums|1 2/9|0}}

Result: 0

{{Percent thaums|1 2/9|0.5}}

Result: 3

{{Percent thaums|1 2/9|0.65}}

Result: 4

{{Percent thaums|1 2/9|1}}

Result: 7