mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-08 05:25:21 +00:00
fix(shops): improve featured potion and quest
This commit is contained in:
parent
9c6c90a2e9
commit
08c63f94fc
5 changed files with 6 additions and 5 deletions
|
|
@ -83,7 +83,7 @@
|
|||
<questDialogDrops :item="item" />
|
||||
</div>
|
||||
<div
|
||||
v-if="item.limited"
|
||||
v-if="item.event"
|
||||
class="limitedTime"
|
||||
>
|
||||
<span
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@
|
|||
</dd>
|
||||
</div>
|
||||
</div>
|
||||
<div v-if="quest.limited && popoverVersion">
|
||||
<div v-if="quest.event && popoverVersion">
|
||||
{{ limitedString }}
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ import moment from 'moment';
|
|||
import sortBy from 'lodash/sortBy';
|
||||
import t from './translation';
|
||||
import {
|
||||
EVENTS,
|
||||
USER_CAN_OWN_QUEST_CATEGORIES,
|
||||
} from './constants';
|
||||
|
||||
|
|
@ -3584,7 +3585,7 @@ const quests = {
|
|||
completion: t('questWaffleCompletion'),
|
||||
value: 4,
|
||||
category: 'hatchingPotion',
|
||||
limited: true,
|
||||
event: EVENTS.spring2020,
|
||||
boss: {
|
||||
name: t('questWaffleBoss'),
|
||||
hp: 500,
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ const featuredItems = {
|
|||
path: 'premiumHatchingPotions.Celestial',
|
||||
},
|
||||
{
|
||||
type: 'hatchingPotions',
|
||||
type: 'premiumHatchingPotion',
|
||||
path: 'hatchingPotions.Veggie',
|
||||
},
|
||||
];
|
||||
|
|
|
|||
|
|
@ -134,7 +134,7 @@ export default function getItemInfo (user, type, item, officialPinnedItems, lang
|
|||
notes: item.notes(language),
|
||||
addlNotes: item.addlNotes ? item.addlNotes(language) : null,
|
||||
group: item.group,
|
||||
limited: item.limited ? item.limited : false,
|
||||
event: item.event,
|
||||
value: item.goldValue ? item.goldValue : item.value,
|
||||
locked,
|
||||
previous: content.quests[item.previous]
|
||||
|
|
|
|||
Loading…
Reference in a new issue