Skip to content

Rarity

Rarity levels are used to flavour things: a common fishing rod is cool, but an epic fishing rod is much cooler.

Our of the box, rarities are associated with item types. You can add a rarity relationship to your own models.

Design Goals

Rarities are pretty simple: there’s a database table with a row. Other models can refer to that row.

The rarity level is usually displayed with a colour. These are defined in the CSS, and the colours may differ between light and dark modes.

Because there is some development work to do, rarities cannot be managed through the admin panel.

Changing a Rarity

The RarityEnum contains the levels and the labels they will be inserted into the database with.

The app.scss defines .rarity-#{$rarity}-text helpers. These should be used in your code whenever the rarity is shown.