Advertisement
Guest User

Untitled

a guest
Feb 13th, 2016
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. local lootFactor = 1
  2. lootFactor = lootFactor / participants ^ (1 / 3) -- tone down the loot a notch if there are many participants
  3. lootFactor = lootFactor * (1 + lootFactor) ^ (con.score / expectedScore) -- increase the loot multiplicatively by how many times the player surpassed the expected score
  4. playerLoot = monsterType:getBossReward(lootFactor, _ == 1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement