# Rarities

In 
Published 2022-11-23

# QuarterMaster Rarities

This section will explain how we handle the rarities for the QuarterMaster NFT Collection.

# Weights

A Weight Table is a group of lists which contain traits that can be randomly generated with your NFT. We have five categories in our rarity table: Common, Uncommon, Rare, Legendary, and Mythic. The weights associated with each trait are what determine the rarity of each individual asset. The higher weight an attribute has, the more likely it is that the trait will roll on the generation of your NFT. The lower the number (weight), the rarer the trait.

Function:

fun getRandomTrait(filter: Predicate<Trait>): Trait {
    val t = traits.filter { filter.test(it) }
    var r = Math.random() * totalWeight
    for (i in t.indices) {
        r -= t[i].weight
        if (r <= 0) {
            return t[i]
        }
    }
    return Trait("", NO_TRAIT)
}

# Male Traits

  • Backgrounds:
    • Total Weight: 270
      • Common: 150/270 (55.5% Chance)
        • Blue: 30
        • Green: 30
        • Orange: 30
        • Teal: 30
        • LightBlue: 30
      • Uncommon: 60/270 (22.2% Chance)
        • Sunset: 20
        • Night: 20
        • Calm: 20
      • Rare: 30/270 (11.1% Chance)
        • Clear: 15
        • Mountain: 15
      • Legendary: 20/270 (7.5% Chance)
        • Beach: 10
        • DarkRocks: 10
      • Mythic: 10/270 (3.7% Chance)
        • Treasure: 5
        • Ship: 5
  • Base Skins:
    • Total Weight: 260
      • Common: 210/260 (80.77% Chance)
        • Tone-1: 30
        • Tone-2: 30
        • Tone-3: 30
        • Tone-4: 30
        • Tone-5: 30
        • Tone-6: 30
        • Tone-7: 30
      • Uncommon: 20/260 (7.69% Chance)
        • Silver: 20
      • Rare: 15/260 (5.77% Chance)
        • Gold: 15
      • Legendary: 10/260 (3.85% Chance)
        • Zombie: 10
      • Mythic: 5/260 (1.92% Chance)
        • Cyborg: 5
  • Clothing:
    • Total Weight: 130
      • Common: 60/130 (46.15% Chance)
        • Black Shirt: 30
        • Jacket: 30
      • Uncommon: 40/130 (30.77% Chance)
        • Black Shirt Logo: 20
        • Jacket Logo: 20
      • Rare: 15/130 (11.54% Chance)
        • White Shirt: 15
      • Legendary: 10/130 (7.69% Chance)
        • Jacket Silver Trim: 10
      • Mythic: 5/130 (3.85% Chance)
        • Jacket Gold Trim: 5
  • Eyes:
    • Total Weight: 80
      • Common: 30/80 (37.5% Chance)
        • Scar: 30
      • Uncommon: 20/80 (25% Chance)
        • Eye Patch: 20
      • Rare: 15/80 (18.75% Chance)
        • Half Mask: 15
      • Legendary: 10/80 (12.5% Chance)
        • Silver Mask: 10
      • Mythic: 5/80 (6.25% Chance)
        • Gold Mask: 5
  • Beard:
    • Total Weight: 280
      • Common: 150/280 (53.57% Chance)
        • Beard: 30
        • No Beard: 30
        • Stubble: 30
        • Goatee: 30
        • Mustache: 30
      • Uncommon: 100/280 (35.71% Chance)
        • Beard and Hair: 20
        • Grey Beard and Hair: 20
        • Brown Beard and Hair: 20
        • Green Goatee: 20
        • Blue Goatee: 20
      • Rare: 15/280 (5.36% Chance)
        • Green Beard: 15
      • Legendary: 10/280 (3.57% Chance)
        • Blue Beard: 10
      • Mythic: 5/280 (1.79% Chance)
        • Red Beard: 5
  • Hat:
    • Total Weight: 185
      • Common: 90/185 (48.65% Chance)
        • Pirate Hat: 30
        • Pirate Hat w/ Skull: 30
        • Brown Pirate Hat: 30
      • Uncommon: 40/185 (21.62% Chance)
        • Pirate Hat w/ Blue Feather: 20
        • Pirate Hat w/ Feather: 20
      • Rare: 30/185 (16.22% Chance)
        • Pirate Hat w/ CroSwap Logo: 15
        • Pirate Hat w/ Red Feather: 15
      • Legendary: 20/185 (10.81% Chance)
        • Pirate Hat w/ Gold Logo: 10
        • Pirate Hat w/ Gold Skull: 10
      • Mythic: 5/185 (2.7% Chance)
        • Pirate Hat w/ Gold Trim: 5
  • Offhand:
    • Total Weight: 145
      • Common: 60/145 (41.38% Chance)
        • Bare Hand: 30
        • Bottle: 30
      • Uncommon: 40/145 (27.58% Chance)
        • Telescope: 20
        • Hook: 20
      • Rare: 30/145 (20.69% Chance)
        • Silver Glove: 15
        • Silver Goblet: 15
      • Legendary: 10/145 (6.90% Chance)
        • Gold Goblet: 10
      • Mythic: 5/145 (3.45% Chance)
        • Gold Glove: 5
  • Shoulder:
    • Total Weight: 110
      • Common: 60/110 (54.55% Chance)
        • Blue Parrot: 30
        • Green Parrot: 30
      • Uncommon: 20/110 (18.18% Chance)
        • Red Parrot: 20
      • Rare: 15/110 (13.64% Chance)
        • Silver Parrot: 15
      • Legendary: 10/110 (9.09% Chance)
        • Gold Parrot: 10
      • Mythic: 5/110 (4.54% Chance)
        • Macaw Bird: 5
  • Mainhand:
    • Total Weight: 200
      • Common: 120/200 (60% Chance)
        • Glove: 30
        • Dynamite: 30
        • Grenade: 30
        • Cannon Ball: 30
      • Uncommon: 50/200 (25% Chance)
        • Musket: 25
        • Flintlock Pistol: 25
      • Rare: 15/200 (7.5% Chance)
        • Blunderbuss: 15
      • Legendary: 10/200 (5% Chance)
        • Silver Cutlass: 10
      • Mythic: 5/200 (2.5% Chance)
        • Gold Cutlass: 5

# Female Traits

  • Backgrounds:
    • Total Weight: 270
      • Common: 150/270 (55.56% Chance)
        • Blue: 30
        • Green: 30
        • Orange: 30
        • Teal: 30
        • LightBlue: 30
      • Uncommon: 60/270 (22.22% Chance)
        • Night: 20
        • Khaki - 20
        • Red - 20
      • Rare: 30/270 (11.11% Chance)
        • Underwater: 15
        • Sky: 15
      • Legendary: 20/270 (7.41% Chance)
        • Beach: 10
        • Dark Rocks: 10
      • Mythic: 10/270 (3.7% Chance)
        • Treasure: 5
        • Ship: 5
  • Base Skins:
    • Total Weight: 260
      • Common: 210/260 (80.77% Chance)
        • Tone-1: 30
        • Tone-2: 30
        • Tone-3: 30
        • Tone-4: 30
        • Tone-5: 30
        • Tone-6: 30
        • Tone-7: 30
      • Uncommon: 20/260 (7.69% Chance)
        • Silver: 20
      • Rare: 15/260 (5.77% Chance)
        • Gold: 15
      • Legendary: 10/260 (3.85% Chance)
        • Zombie: 10
      • Mythic: 5/260 (1.92% Chance)
        • Cyborg: 5
  • Eyes:
    • Total Weight: 115
      • Common: 60/115 (52.17% Chance)
        • Blank: 30
        • Eye Patch: 30
      • Uncommon: 25/115 (21.74% Chance)
        • Scar: 25
      • Rare: 15/115 (13.04% Chance)
        • Half Mask: 15
      • Legendary: 10/115 (8.70% Chance)
        • Silver Mask: 10
      • Mythic: 5/115 (4.35% Chance)
        • Gold Mask: 5
  • Hair:
    • Total Weight: 80
      • Common: 30/80 (37.5% Chance)
        • Black Hair: 30
      • Uncommon: 20/80 (25% Chance)
        • Blonde Hair: 20
      • Rare: 15/80 (18.75% Chance)
        • Brown Hair: 15
      • Legendary: 10/80 (12.5% Chance)
        • Grey Hair: 10
      • Mythic: 5/80 (6.25% Chance)
        • Red Hair: 5
  • Hat:
    • Total Weight: 185
      • Common: 90/185 (48.65% Chance)
        • Pirate Hat: 30
        • Pirate Hat w/ Skull: 30
        • Brown Pirate Hat: 30
      • Uncommon: 40/185 (21.62% Chance)
        • Pirate Hat w/ Blue Feather: 20
        • Pirate Hat w/ Feather: 20
      • Rare: 30/185 (16.22% Chance)
        • Pirate Hat w/ CroSwap Logo: 15
        • Pirate Hat w/ Red Feather: 15
      • Legendary: 20/185 (10.81% Chance)
        • Pirate Hat w/ Gold Logo: 10
        • Pirate Hat w/ Gold Skull: 10
      • Mythic: 5/185 (2.70% Chance)
        • Pirate Hat w/ Gold Trim: 5
  • Offhand:
    • Total Weight: 145
      • Common: 60/145 (41.38% Chance)
        • Bare Hand: 30
        • Bottle: 30
      • Uncommon: 40/145 (27.58% Chance)
        • Telescope: 20
        • Hook: 20
      • Rare: 30/145 (20.69% Chance)
        • Silver Glove: 15
        • Silver Goblet: 15
      • Legendary: 10/145 (6.90% Chance)
        • Gold Goblet: 10
      • Mythic: 5/145 (3.45% Chance)
        • Gold Glove: 5
  • Shoulder:
    • Total Weight: 110
      • Common: 60/110 (54.55% Chance)
        • Blue Parrot: 30
        • Green Parrot: 30
      • Uncommon: 20/110 (18.18% Chance)
        • Red Parrot: 20
      • Rare: 15/110 (13.64% Chance)
        • Silver Parrot: 15
      • Legendary: 10/110 (9.09% Chance)
        • Gold Parrot: 10
      • Mythic: 5/110 (4.54% Chance)
        • Macaw Bird: 5
  • Clothing:
    • Total Weight: 130
      • Common: 60/130 (46.15% Chance)
        • Black Shirt: 30
        • Jacket: 30
      • Uncommon: 40/130 (30.77% Chance)
        • Black Shirt Logo: 20
        • Jacket Logo: 20
      • Rare: 15/130 (11.54% Chance)
        • White Shirt: 15
      • Legendary: 10/130 (7.69% Chance)
        • Jacket Silver Trim: 10
      • Mythic: 5/130 (3.85% Chance)
        • Jacket Gold Trim: 5
  • Mainhand:
    • Total Weight: 170
      • Common: 90/170 (52.95% Chance)
        • Dynamite: 30
        • Grenade: 30
        • Cannon Ball: 30
      • Uncommon: 50/170 (29.41% Chance)
        • Musket: 25
        • Flintlock Pistol: 25
      • Rare: 15/170 (8.82% Chance)
        • Blunderbuss: 15
      • Legendary: 10/170 (5.88% Chance)
        • Silver Cutlass: 10
      • Mythic: 5/170 (2.94% Chance)
        • Gold Cutlass: 5