> For the complete documentation index, see [llms.txt](https://team-compliance.gitbook.io/library-of-isaac/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://team-compliance.gitbook.io/library-of-isaac/modules/trinkets.md).

# Trinkets

## Overview

| Return Value | Function                                                                                                                                    |
| ------------ | ------------------------------------------------------------------------------------------------------------------------------------------- |
| integer      | [GetGoldenTrinketType](#getgoldentrinkettype)([`TrinketType`](https://wofsauge.github.io/IsaacDocs/rep/enums/TrinketType.html) trinketType) |
| integer      | [GetNormalTrinketTypeFromGoldenTrinketType](#getnormaltrinkettypefromgoldentrinkettype)(`any` trinketType)                                  |
| boolean      | [IsGoldenTrinket](#isgoldentrinket)([`TrinketType`](https://wofsauge.github.io/IsaacDocs/rep/enums/TrinketType.html) trinketType)           |

## Functions

### GetGoldenTrinketType()

`integer GetGoldenTrinketType(`[`TrinketType`](https://wofsauge.github.io/IsaacDocs/rep/enums/TrinketType.html) `trinketType)`

Helper function to get the golden trinket type corresponding to a normal trinket type.

### GetNormalTrinketTypeFromGoldenTrinketType()

`integer GetNormalTrinketTypeFromGoldenTrinketType(any trinketType)`

Helper function to get the normal trinket type corresponding to a golden trinket type.

### IsGoldenTrinket()

`boolean IsGoldenTrinket(`[`TrinketType`](https://wofsauge.github.io/IsaacDocs/rep/enums/TrinketType.html) `trinketType)`

Helper function to check if a given trinket type corresponds to a golden trinket.
