Unify behaviour for shops (#11829)

* Change price for basilist and dustbunnies

* return correct unlockCondition for moon quests

* Fix basilist not being buyable
This commit is contained in:
Phillip Thelen
2020-02-20 20:24:43 +01:00
committed by GitHub
parent 12afdc1681
commit 0b57c0a22d
3 changed files with 6 additions and 7 deletions

View File

@@ -209,7 +209,6 @@
<!-- eslint-disable vue/no-use-v-if-with-v-for, max-len -->
<div
v-for="(items, key) in getGrouped(questItems(category, selectedSortItemsBy,searchTextThrottled, hideLocked, hidePinned))"
v-if="key !== 'questGroupEarnable'"
:key="key"
class="group"
>

View File

@@ -1067,7 +1067,7 @@ const quests = {
notes: t('questBasilistNotes'),
group: 'questGroupEarnable',
completion: t('questBasilistCompletion'),
value: 4,
goldValue: 100,
category: 'unlockable',
unlockCondition: {
condition: 'party invite',
@@ -2238,7 +2238,7 @@ const quests = {
notes: t('questDustBunniesNotes'),
group: 'questGroupEarnable',
completion: t('questDustBunniesCompletion'),
value: 4,
value: 1,
category: 'unlockable',
unlockCondition: {
condition: 'party invite',
@@ -2262,7 +2262,7 @@ const quests = {
value: 4,
category: 'unlockable',
unlockCondition: {
condition: 'party invite',
condition: 'login reward',
incentiveThreshold: 7,
text: t('loginReward', { count: 7 }),
},
@@ -2293,7 +2293,7 @@ const quests = {
value: 4,
category: 'unlockable',
unlockCondition: {
condition: 'party invite',
condition: 'login reward',
incentiveThreshold: 22,
text: t('loginReward', { count: 22 }),
},
@@ -2323,7 +2323,7 @@ const quests = {
value: 4,
category: 'unlockable',
unlockCondition: {
condition: 'party invite',
condition: 'login reward',
incentiveThreshold: 40,
text: t('loginReward', { count: 40 }),
},

View File

@@ -42,7 +42,7 @@ export class BuyQuestWithGoldOperation extends AbstractGoldItemOperation { // es
if (!item) throw new NotFound(errorMessage('questNotFound', { key }));
if (!(item.category === 'gold' && item.goldValue)) {
if (!(item.goldValue)) {
throw new NotAuthorized(this.i18n('questNotGoldPurchasable', { key }));
}