Item mods: Difference between revisions

Jump to navigation Jump to search
582 bytes added ,  19:30, 9 October 2021
no edit summary
mNo edit summary
No edit summary
Line 12: Line 12:
|-
|-
| Rarity
| Rarity
| Each mod has a rarity value of either Common, Uncommon, Rare, or Mega Rare. The rarity of the mod affects its chances of appearing on procedurally generated items. The rarities equate to roughly the following percent chances:{{Code Reference|namespace=XRL.World|class=ModificationFactory|method=getBaseRarityWeight}}
| Each mod has a rarity value of either Common, Uncommon, Rare, or Mega Rare. The rarity of the mod affects its weighted chance of appearing on procedurally generated items within the overall mod pool for that item. The rarities have the following weights.{{Code Reference|namespace=XRL.World|class=ModificationFactory|method=getBaseRarityWeight}}
   {| class="wikitable"
   {| class="wikitable"
   ! Common
   ! Rarity
   | 65.7%
  ! Weight
   ! Uncommon
  |-
   | 26.3%
  | Common mods
   ! Rare
  | 2000
   | 7.9%
   |-
   ! Mega Rare
   | Uncommon mods
   | 0.1%
  | 800
   |-
   | Rare mods
   | 240
   |-
  | Mega Rare mods
   | 3
   |}
   |}
In addition to rarity, some mods have a "Native Tier", which represents the lowest tier of item that the mod is likely to appear on. It is still possible for the mod to appear on lower-tier items, however the chance of a mod appearing on items is significantly reduced for items below the mod's native tier. ('''Chance ÷ ((ModNativeTier - ItemTier) * 5)'''){{Code Reference|namespace=XRL.World|class=ModificationFactory|method=ApplyModifications|name=ApplyModifications}}{{Code Reference|namespace=XRL.World|class=ModificationFactory|method=getTierRarityWeight}}
 
The actual percentage chance of a mod depends on the number of each rarity of mod in the overall pool of potentially applicable mods for an item. For example, in a pool of 3 common mods, 2 uncommon mods, 1 rare mod, and 1 mega rare mod, the total weight would be 7843 (2000+2000+2000+800+800+240+3) and the weighted percentages would be 76.5% common, 20% uncommon, 3.1% rare, and 0.4% mega rare. The exact pool of mods varies for each type of item, such as a grenade or a pair of boots.
 
In addition to rarity, some mods have a "Native Tier", which represents the lowest tier of item that the mod is likely to appear on. It is still possible for the mod to appear on lower-tier items, however the weighted chance of a mod appearing on items is significantly reduced for items below the mod's native tier. ('''Weight ÷ ((ModNativeTier - ItemTier) * 5)'''){{Code Reference|namespace=XRL.World|class=ModificationFactory|method=ApplyModifications|name=ApplyModifications}}{{Code Reference|namespace=XRL.World|class=ModificationFactory|method=getTierRarityWeight}}
|-
|-
| Categories & Restrictions
| Categories & Restrictions

Navigation menu