Template:Percent thaums/doc

From Discworld MUD Wiki
Revision as of 15:14, 23 December 2011 by Frazyl (Talk | contribs) (doc)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.

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


{{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