mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 15:17:25 +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 -->
|
||||
<div
|
||||
v-for="(items, key) in getGrouped(questItems(category, selectedSortItemsBy,searchTextThrottled, hideLocked, hidePinned))"
|
||||
v-if="key !== 'questGroupEarnable'"
|
||||
:key="key"
|
||||
class="group"
|
||||
>
|
||||
|
||||
@@ -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 }),
|
||||
},
|
||||
|
||||
@@ -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 }));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user