From Brotato Wiki

Revision as of 22:00, 9 November 2022 by Darkly77 (talk | contribs) (INITIAL \o/)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


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