fix(shops): improve featured potion and quest

This commit is contained in:
Sabe Jones 2020-04-10 16:17:15 -05:00
parent 9c6c90a2e9
commit 08c63f94fc
5 changed files with 6 additions and 5 deletions

View file

@ -83,7 +83,7 @@
<questDialogDrops :item="item" /> <questDialogDrops :item="item" />
</div> </div>
<div <div
v-if="item.limited" v-if="item.event"
class="limitedTime" class="limitedTime"
> >
<span <span

View file

@ -36,7 +36,7 @@
</dd> </dd>
</div> </div>
</div> </div>
<div v-if="quest.limited && popoverVersion"> <div v-if="quest.event && popoverVersion">
{{ limitedString }} {{ limitedString }}
</div> </div>
</div> </div>

View file

@ -4,6 +4,7 @@ import moment from 'moment';
import sortBy from 'lodash/sortBy'; import sortBy from 'lodash/sortBy';
import t from './translation'; import t from './translation';
import { import {
EVENTS,
USER_CAN_OWN_QUEST_CATEGORIES, USER_CAN_OWN_QUEST_CATEGORIES,
} from './constants'; } from './constants';
@ -3584,7 +3585,7 @@ const quests = {
completion: t('questWaffleCompletion'), completion: t('questWaffleCompletion'),
value: 4, value: 4,
category: 'hatchingPotion', category: 'hatchingPotion',
limited: true, event: EVENTS.spring2020,
boss: { boss: {
name: t('questWaffleBoss'), name: t('questWaffleBoss'),
hp: 500, hp: 500,

View file

@ -24,7 +24,7 @@ const featuredItems = {
path: 'premiumHatchingPotions.Celestial', path: 'premiumHatchingPotions.Celestial',
}, },
{ {
type: 'hatchingPotions', type: 'premiumHatchingPotion',
path: 'hatchingPotions.Veggie', path: 'hatchingPotions.Veggie',
}, },
]; ];

View file

@ -134,7 +134,7 @@ export default function getItemInfo (user, type, item, officialPinnedItems, lang
notes: item.notes(language), notes: item.notes(language),
addlNotes: item.addlNotes ? item.addlNotes(language) : null, addlNotes: item.addlNotes ? item.addlNotes(language) : null,
group: item.group, group: item.group,
limited: item.limited ? item.limited : false, event: item.event,
value: item.goldValue ? item.goldValue : item.value, value: item.goldValue ? item.goldValue : item.value,
locked, locked,
previous: content.quests[item.previous] previous: content.quests[item.previous]