Merge branch 'release' into develop

This commit is contained in:
SabreCat 2023-04-05 14:04:45 -05:00
commit c8b98678d0
6 changed files with 27 additions and 10 deletions

2
package-lock.json generated
View file

@ -1,6 +1,6 @@
{ {
"name": "habitica", "name": "habitica",
"version": "4.265.0", "version": "4.266.0",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
"dependencies": { "dependencies": {

View file

@ -1,7 +1,7 @@
{ {
"name": "habitica", "name": "habitica",
"description": "A habit tracker app which treats your goals like a Role Playing Game.", "description": "A habit tracker app which treats your goals like a Role Playing Game.",
"version": "4.265.0", "version": "4.266.0",
"main": "./website/server/index.js", "main": "./website/server/index.js",
"dependencies": { "dependencies": {
"@babel/core": "^7.20.12", "@babel/core": "^7.20.12",

View file

@ -58403,11 +58403,6 @@
width: 81px; width: 81px;
height: 99px; height: 99px;
} }
.Pet-HatchingPotion-TeaShop {
background-image: url('https://habitica-assets.s3.amazonaws.com/mobileApp/images/Pet-HatchingPotion-TeaShop.png');
width: 68px;
height: 68px;
}
.Pet_HatchingPotion_Amber { .Pet_HatchingPotion_Amber {
background-image: url('https://habitica-assets.s3.amazonaws.com/mobileApp/images/Pet_HatchingPotion_Amber.png'); background-image: url('https://habitica-assets.s3.amazonaws.com/mobileApp/images/Pet_HatchingPotion_Amber.png');
width: 68px; width: 68px;
@ -58653,6 +58648,11 @@
width: 68px; width: 68px;
height: 68px; height: 68px;
} }
.Pet_HatchingPotion_TeaShop {
background-image: url('https://habitica-assets.s3.amazonaws.com/mobileApp/images/Pet_HatchingPotion_TeaShop.png');
width: 68px;
height: 68px;
}
.Pet_HatchingPotion_Thunderstorm { .Pet_HatchingPotion_Thunderstorm {
background-image: url('https://habitica-assets.s3.amazonaws.com/mobileApp/images/Pet_HatchingPotion_Thunderstorm.png'); background-image: url('https://habitica-assets.s3.amazonaws.com/mobileApp/images/Pet_HatchingPotion_Thunderstorm.png');
width: 68px; width: 68px;

View file

@ -311,6 +311,7 @@
"hatchingPotionVirtualPet": "Virtual Pet", "hatchingPotionVirtualPet": "Virtual Pet",
"hatchingPotionPorcelain": "Porcelain", "hatchingPotionPorcelain": "Porcelain",
"hatchingPotionPinkMarble": "Pink Marble", "hatchingPotionPinkMarble": "Pink Marble",
"hatchingPotionTeaShop": "Tea Shop",
"hatchingPotionNotes": "Pour this on an egg, and it will hatch as a <%= potText(locale) %> pet.", "hatchingPotionNotes": "Pour this on an egg, and it will hatch as a <%= potText(locale) %> pet.",
"premiumPotionAddlNotes": "Not usable on quest pet eggs. Available for purchase until <%= date(locale) %>.", "premiumPotionAddlNotes": "Not usable on quest pet eggs. Available for purchase until <%= date(locale) %>.",

View file

@ -15,6 +15,11 @@ export const EVENTS = {
season: 'normal', season: 'normal',
npcImageSuffix: '', npcImageSuffix: '',
}, },
aprilFools2023: {
start: '2023-04-01T08:00-04:00',
end: '2023-04-02T08:00-04:00',
aprilFools: 'teaShop',
},
spring2023: { spring2023: {
start: '2023-03-21T08:00-04:00', start: '2023-03-21T08:00-04:00',
end: '2023-04-30T23:59-04:00', end: '2023-04-30T23:59-04:00',

View file

@ -564,13 +564,13 @@ const wacky = {
Veggie: { Veggie: {
text: t('hatchingPotionVeggie'), text: t('hatchingPotionVeggie'),
limited: true, limited: true,
event: EVENTS.spring2022, event: EVENTS.spring2023,
_addlNotes: t('eventAvailabilityReturning', { _addlNotes: t('eventAvailabilityReturning', {
availableDate: t('dateEndApril'), availableDate: t('dateEndApril'),
previousDate: t('aprilYYYY', { year: 2021 }), previousDate: t('aprilYYYY', { year: 2022 }),
}), }),
canBuy () { canBuy () {
return moment().isBetween('2022-04-07T08:00-05:00', EVENTS.spring2022.end); return moment().isBetween('2023-04-06T08:00-04:00', EVENTS.spring2023.end);
}, },
}, },
Dessert: { Dessert: {
@ -585,6 +585,17 @@ const wacky = {
_addlNotes: t('premiumPotionUnlimitedNotes'), _addlNotes: t('premiumPotionUnlimitedNotes'),
canBuy: hasQuestAchievementFunction('virtualpet'), canBuy: hasQuestAchievementFunction('virtualpet'),
}, },
TeaShop: {
text: t('hatchingPotionTeaShop'),
limited: true,
event: EVENTS.spring2023,
_addlNotes: t('premiumPotionAddlNotes', {
date: t('dateEndApril'),
}),
canBuy () {
return moment().isBetween('2023-04-06T08:00-04:00', EVENTS.spring2023.end);
},
},
}; };
each(drops, (pot, key) => { each(drops, (pot, key) => {