mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-05 20:12:19 +00:00
pets: adjust so eggs = 40%, food = 60%
This commit is contained in:
parent
3eb0093626
commit
afb8dcbf83
1 changed files with 3 additions and 3 deletions
|
|
@ -132,15 +132,15 @@ score = (model, taskId, direction, times, batch, cron) ->
|
|||
# If they got a drop: 50% chance of egg, 50% Food. If food, broken down further even further
|
||||
rarity = Math.random()
|
||||
|
||||
# Egg, 50% chance
|
||||
if rarity > .5
|
||||
# Egg, 40% chance
|
||||
if rarity > .6
|
||||
drop = randomVal(pets)
|
||||
user.push 'items.eggs', drop
|
||||
drop.type = 'Egg'
|
||||
drop.dialog = "You've found a #{drop.text} Egg! #{drop.notes}"
|
||||
|
||||
|
||||
# Food, 50% chance - break down by rarity even more. FIXME this may not be the best method, so revisit
|
||||
# Food, 60% chance - break down by rarity even more. FIXME this may not be the best method, so revisit
|
||||
else
|
||||
acceptableDrops = []
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue