Created
February 14, 2016 05:46
-
-
Save BenDol/daf409d1d976dc547b4a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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