Module br.player.glyph

Glyph handling functions for BadRotations.

Glyph functions are stored in br.player.glyph and can be utilized by `local glyph = br.player.glyph` in your profile.

NOTE: On modern retail clients the classic glyph socket API may not exist; in that case glyph checks return false.

Functions

glyph.available () Returns whether glyph API is available on this client.
glyph.socketCount () Returns how many glyph sockets we can scan.
glyph.has (glyphSpellId) Returns true if the given glyph spellId is socketed.
glyph.k.id () Returns the glyph spellId.
glyph.k.enabled () Returns true if this glyph is socketed.


Functions

glyph.available ()
Returns whether glyph API is available on this client.

Returns:

    boolean
glyph.socketCount ()
Returns how many glyph sockets we can scan.

Returns:

    number
glyph.has (glyphSpellId)
Returns true if the given glyph spellId is socketed.

Parameters:

  • glyphSpellId number

Returns:

    boolean
glyph.k.id ()
Returns the glyph spellId.

Returns:

    number
glyph.k.enabled ()
Returns true if this glyph is socketed.

Returns:

    boolean

generated by LDoc 1.5.0 Last updated 2026-05-26 22:12:51