From Brotato Wiki
Gets the rarity for the provided name. Works with Items or Weapons (via GetType)
IMPORTANT: GetType (and therefore this helper too) relies on the #default for each entry always being "-" (in Item_Data, Weapon_Data, and Character_Data)
Examples
Items
{{GetRarity|Bat}} = 1
{{GetRarity|Acid}} = 2
{{GetRarity|Candle}} = 3
{{GetRarity|Cape}} = 4
Weapons
{{GetRarity|Chopper}} = 1
{{GetRarity|Hammer}} = 2
{{GetRarity|Minigun}} = 3
Unknown (0)
{{GetRarity|UNKNOWN}} = 0
With Iconbox
{{Iconbox|Acid|rarity={{GetRarity|Acid}}}}