Skip to content

Instantly share code, notes, and snippets.

@BenDol
Created February 14, 2016 05:46
Show Gist options
  • Save BenDol/daf409d1d976dc547b4a to your computer and use it in GitHub Desktop.
Save BenDol/daf409d1d976dc547b4a to your computer and use it in GitHub Desktop.
local lootFactor = 1
lootFactor = lootFactor / participants ^ (1 / 3) -- tone down the loot a notch if there are many participants
lootFactor = lootFactor * (1 + lootFactor) ^ (con.score / expectedScore) -- increase the loot multiplicatively by how many times the player surpassed the expected score
playerLoot = monsterType:getBossReward(lootFactor, _ == 1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment