The Loot Generator API creates random loot items by combining:
- 30 adjectives
- 29 materials
- 15 item types
resulting in 13,050 possible items.
Occasionally, a rare legendary item is generated. An item becomes legendary if all three components are rare. Rarity is determined by a threshold:
Threshold = max(1,⌊log(length)×0.6⌋)
Probability of a legendary item with the default settings:
P(Legendary) = 1/13,050 ≈ 0.00766%
Only one legendary item is possible: ✨💎 Arcane Diamond Rock
.
You can expand the lists or adjust the 0.6 multiplier to control rarity.