Template:DetermineRarity: Difference between revisions

From RuneRealm Wiki
Jump to navigation Jump to search
Content added Content deleted
No edit summary
Tag: Reverted
No edit summary
Tag: Manual revert
 
Line 1: Line 1:
<includeonly>{{#switch:{{{1}}}
<includeonly>{{#ifexpr:({{{1}}})>1/25|Common|{{#ifexpr:({{{1}}})>1/100|Uncommon|{{#ifexpr:({{{1}}})>1/1000|Rare|Very Rare}}}}}}</includeonly><noinclude>{{/doc}}</noinclude>
|1=Always
|{{#ifexpr:1<{{{1}}} and {{{1}}}<25|{{{1}}}|1}}=Common
|{{#ifexpr:25<{{{1}}} and {{{1}}}<100|{{{1}}}|1}}=Uncommon
|{{#ifexpr:100<{{{1}}} and {{{1}}}<1000|{{{1}}}|1}}=Rare
|{{#ifexpr:{{{1}}}>=1000|{{{1}}}|1}}=Very rare
|Varies}}</includeonly><noinclude>{{/doc}}</noinclude>

Latest revision as of 11:34, 17 October 2024

Template documentation
This documentation is transcluded from Template:DetermineRarity/doc. [edit] [history] [purge]

Prints "Always", "Common", "Uncommon", "Rare" or "Very rare", based on the number in the first (and only) parameter. For example:

{{DetermineRarity|50}}

would produce "Uncommon", as 1/50 is considered uncommon.

Usage

Primarily used with {{DropsLine}} to dynamically output a different rarity when the drop rate is varied. As an example, revenants share the same loot but it is more common from higher levelled monsters, as documented in {{Revenants/Drops}}.