mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-05 12:02:13 +00:00
fix(quests): Remove double chance for quest drops
Makes collection quests maybe, possibly take more than a single day to complete for an average party. Doubled chances not fed through diminishingReturns: overkill.
This commit is contained in:
parent
ca290692dd
commit
4178f0ba32
1 changed files with 1 additions and 1 deletions
|
|
@ -1003,7 +1003,7 @@ api.wrap = (user, main=true) ->
|
|||
#console.log("Drop chance: " + chance)
|
||||
|
||||
quest = content.quests[user.party.quest?.key]
|
||||
if quest?.collect and user.fns.predictableRandom(user.stats.gp) < (chance * 2) # 2x as likely to get a collection quest drop as a pet item drop
|
||||
if quest?.collect and user.fns.predictableRandom(user.stats.gp) < chance
|
||||
dropK = user.fns.randomVal quest.collect, {key:true}
|
||||
user.party.quest.progress.collect[dropK]++
|
||||
user.markModified? 'party.quest.progress'
|
||||
|
|
|
|||
Loading…
Reference in a new issue