mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-05-21 05:08:51 +00:00
chore(various): News and sprites
Also tweaks the drop probability of equipment from 70% to 60%.
This commit is contained in:
parent
8f744b043a
commit
804cced3ff
6 changed files with 407 additions and 396 deletions
2
common/dist/sprites/habitrpg-shared.css
vendored
2
common/dist/sprites/habitrpg-shared.css
vendored
File diff suppressed because one or more lines are too long
782
common/dist/sprites/spritesmith4.css
vendored
782
common/dist/sprites/spritesmith4.css
vendored
File diff suppressed because it is too large
Load diff
BIN
common/dist/sprites/spritesmith4.png
vendored
BIN
common/dist/sprites/spritesmith4.png
vendored
Binary file not shown.
|
Before Width: | Height: | Size: 679 KiB After Width: | Height: | Size: 681 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 9 KiB After Width: | Height: | Size: 8.6 KiB |
|
|
@ -852,13 +852,13 @@ api.wrap = (user, main=true) ->
|
|||
else if item.key is 'armoire'
|
||||
armoireResult = user.fns.predictableRandom()
|
||||
eligibleEquipment = _.filter(content.gear.flat, ((i)->i.klass is 'armoire' and !user.items.gear.owned[i.key]))
|
||||
if !_.isEmpty(eligibleEquipment) and (armoireResult < .7 or !user.flags.armoireOpened)
|
||||
if !_.isEmpty(eligibleEquipment) and (armoireResult < .6 or !user.flags.armoireOpened)
|
||||
drop = user.fns.randomVal(eligibleEquipment)
|
||||
user.items.gear.owned[drop.key] = true
|
||||
user.flags.armoireOpened = true
|
||||
message = i18n.t('armoireEquipment', {image: '<span class="shop_'+drop.key+' pull-left"></span>', dropText: drop.text(req.language)}, req.language)
|
||||
if api.countArmoire(user.items.gear.owned) is 0 then user.flags.armoireEmpty = true
|
||||
else if (!_.isEmpty(eligibleEquipment) and armoireResult < .85) or armoireResult < .6
|
||||
else if (!_.isEmpty(eligibleEquipment) and armoireResult < .8) or armoireResult < .5
|
||||
drop = user.fns.randomVal _.where(content.food, {canDrop:true})
|
||||
user.items.food[drop.key] ?= 0
|
||||
user.items.food[drop.key] += 1
|
||||
|
|
|
|||
|
|
@ -1,5 +1,16 @@
|
|||
h5 6/1/2015 - JUNE BACKGROUNDS AND NEW MOUNT POSITIONING!
|
||||
h5 6/1/2015 - NEW EQUIPMENT: THE ENCHANTED ARMOIRE, JUNE BACKGROUNDS, AND NEW MOUNT POSITIONING!
|
||||
hr
|
||||
tr
|
||||
td
|
||||
.promo_enchanted_armoire.pull-right
|
||||
h5 New Equipment: The Enchanted Armoire!
|
||||
p Now after you achieve Ultimate Gear, you'll unlock a new Reward: THE ENCHANTED ARMOIRE!
|
||||
br
|
||||
p Click on the Enchanted Armoire, a 100 GP Reward in the Rewards Column, for a random chance at special Equipment! It may also give you random XP or food items. We'll be adding new equipment to it every month, but even when you've exhausted the current supply, you can keep clicking for a chance at food and XP.
|
||||
br
|
||||
p Now go spend all that accumulated Gold! May the Random Number Generator smile upon you...
|
||||
p.small.muted by Lemoness and SabreCat
|
||||
p.small.muted Art by Kiwibot, Starsystemic, UncommonCriminal, Zoebeagle, and Andrews38
|
||||
tr
|
||||
td
|
||||
.background_island_waterfalls.pull-right
|
||||
|
|
@ -17,7 +28,7 @@ a(href='/static/old-news', target='_blank') Read older news
|
|||
|
||||
mixin oldNews
|
||||
|
||||
h5 6/1/2015 - JUNE MYSTERY ITEM AND NEW MOUNT POSITIONING!
|
||||
h5 6/1/2015 - JUNE MYSTERY ITEM!
|
||||
tr
|
||||
td
|
||||
.inventory_present_06.pull-right
|
||||
|
|
|
|||
Loading…
Reference in a new issue