mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 23:27:26 +01:00
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:
@@ -209,7 +209,6 @@
|
|||||||
<!-- eslint-disable vue/no-use-v-if-with-v-for, max-len -->
|
<!-- eslint-disable vue/no-use-v-if-with-v-for, max-len -->
|
||||||
<div
|
<div
|
||||||
v-for="(items, key) in getGrouped(questItems(category, selectedSortItemsBy,searchTextThrottled, hideLocked, hidePinned))"
|
v-for="(items, key) in getGrouped(questItems(category, selectedSortItemsBy,searchTextThrottled, hideLocked, hidePinned))"
|
||||||
v-if="key !== 'questGroupEarnable'"
|
|
||||||
:key="key"
|
:key="key"
|
||||||
class="group"
|
class="group"
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -1067,7 +1067,7 @@ const quests = {
|
|||||||
notes: t('questBasilistNotes'),
|
notes: t('questBasilistNotes'),
|
||||||
group: 'questGroupEarnable',
|
group: 'questGroupEarnable',
|
||||||
completion: t('questBasilistCompletion'),
|
completion: t('questBasilistCompletion'),
|
||||||
value: 4,
|
goldValue: 100,
|
||||||
category: 'unlockable',
|
category: 'unlockable',
|
||||||
unlockCondition: {
|
unlockCondition: {
|
||||||
condition: 'party invite',
|
condition: 'party invite',
|
||||||
@@ -2238,7 +2238,7 @@ const quests = {
|
|||||||
notes: t('questDustBunniesNotes'),
|
notes: t('questDustBunniesNotes'),
|
||||||
group: 'questGroupEarnable',
|
group: 'questGroupEarnable',
|
||||||
completion: t('questDustBunniesCompletion'),
|
completion: t('questDustBunniesCompletion'),
|
||||||
value: 4,
|
value: 1,
|
||||||
category: 'unlockable',
|
category: 'unlockable',
|
||||||
unlockCondition: {
|
unlockCondition: {
|
||||||
condition: 'party invite',
|
condition: 'party invite',
|
||||||
@@ -2262,7 +2262,7 @@ const quests = {
|
|||||||
value: 4,
|
value: 4,
|
||||||
category: 'unlockable',
|
category: 'unlockable',
|
||||||
unlockCondition: {
|
unlockCondition: {
|
||||||
condition: 'party invite',
|
condition: 'login reward',
|
||||||
incentiveThreshold: 7,
|
incentiveThreshold: 7,
|
||||||
text: t('loginReward', { count: 7 }),
|
text: t('loginReward', { count: 7 }),
|
||||||
},
|
},
|
||||||
@@ -2293,7 +2293,7 @@ const quests = {
|
|||||||
value: 4,
|
value: 4,
|
||||||
category: 'unlockable',
|
category: 'unlockable',
|
||||||
unlockCondition: {
|
unlockCondition: {
|
||||||
condition: 'party invite',
|
condition: 'login reward',
|
||||||
incentiveThreshold: 22,
|
incentiveThreshold: 22,
|
||||||
text: t('loginReward', { count: 22 }),
|
text: t('loginReward', { count: 22 }),
|
||||||
},
|
},
|
||||||
@@ -2323,7 +2323,7 @@ const quests = {
|
|||||||
value: 4,
|
value: 4,
|
||||||
category: 'unlockable',
|
category: 'unlockable',
|
||||||
unlockCondition: {
|
unlockCondition: {
|
||||||
condition: 'party invite',
|
condition: 'login reward',
|
||||||
incentiveThreshold: 40,
|
incentiveThreshold: 40,
|
||||||
text: t('loginReward', { count: 40 }),
|
text: t('loginReward', { count: 40 }),
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ export class BuyQuestWithGoldOperation extends AbstractGoldItemOperation { // es
|
|||||||
|
|
||||||
if (!item) throw new NotFound(errorMessage('questNotFound', { key }));
|
if (!item) throw new NotFound(errorMessage('questNotFound', { key }));
|
||||||
|
|
||||||
if (!(item.category === 'gold' && item.goldValue)) {
|
if (!(item.goldValue)) {
|
||||||
throw new NotAuthorized(this.i18n('questNotGoldPurchasable', { key }));
|
throw new NotAuthorized(this.i18n('questNotGoldPurchasable', { key }));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user