Sly 2:Pickpocketing: Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
No edit summary
m (→‎Items: Fixed typo)
Line 40: Line 40:


# Sum up the total odds for all items in the loot table
# Sum up the total odds for all items in the loot table
# Select a random valye between 0 and the max odds
# Select a random value between 0 and the max odds
# For each item in the loot table:
# For each item in the loot table:
## If the random value is greater than the current total odds, set the item to that item
## If the random value is greater than the current total odds, set the item to that item