From Brotato Wiki

Revision as of 23:28, 7 November 2024 by Darkly77 (talk | contribs) (Add "Used by..." text info)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


Gets the type (item/weapon/character) from the provided name.

IMPORTANT: Relies on the #default for each entry always being "-" (in Item_Data, Weapon_Data, and Character_Data)

Used by Template:MiniIconbox, which uses this template via Template:GetRarity.

Examples

{{GetType|Knife}} = weapon

{{GetType|Acid}} = item

{{GetType|Mutant}} = character

{{GetType|UNKNOWN}} = unknown