Merge branch 'release' into report-profile-modal

This commit is contained in:
SabreCat
2023-09-15 15:23:21 -05:00
6 changed files with 14 additions and 10 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "habitica",
"version": "5.4.0",
"version": "5.4.1",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "habitica",
"description": "A habit tracker app which treats your goals like a Role Playing Game.",
"version": "5.4.0",
"version": "5.4.1",
"main": "./website/server/index.js",
"dependencies": {
"@babel/core": "^7.22.10",
+1 -1
View File
@@ -197,7 +197,7 @@ describe('shared.ops.purchase', () => {
it('purchases quest bundles', async () => {
const startingBalance = user.balance;
const clock = sandbox.useFakeTimers(moment('2019-05-20').valueOf());
// const clock = sandbox.useFakeTimers(moment('2019-05-20').valueOf());
const type = 'bundles';
const key = 'featheredFriends';
const price = 1.75;
+2 -2
View File
@@ -18,9 +18,9 @@ const bundles = {
'harpy',
'owl',
],
event: EVENTS.potions202105,
event: EVENTS.bundle202309,
canBuy () {
return moment().isBefore(EVENTS.potions202105.end);
return moment().isBetween(EVENTS.bundle202309.start, EVENTS.bundle202309.end);
},
type: 'quests',
class: 'quest_bundle_featheredFriends',
@@ -11,10 +11,14 @@ const gemsPromo = {
export const EVENTS = {
noEvent: {
start: '2023-08-01T23:59-04:00',
end: '2023-08-10T08:00-04:00',
end: '2023-09-12T08:00-04:00',
season: 'normal',
npcImageSuffix: '',
},
bundle202309: {
start: '2023-09-12T08:00-04:00',
end: '2023-09-30T23:59-04:00',
},
bundle202308: {
start: '2023-08-15T08:00-04:00',
end: '2023-08-31T23:59-04:00',
@@ -45,19 +45,19 @@ const featuredItems = {
];
},
quests () {
if (moment().isBetween(EVENTS.bundle202308.start, EVENTS.bundle202308.end)) {
if (moment().isBetween(EVENTS.bundle202309.start, EVENTS.bundle202309.end)) {
return [
{
type: 'bundles',
path: 'bundles.hugabug',
path: 'bundles.featheredFriends',
},
{
type: 'quests',
path: 'quests.octopus',
path: 'quests.pterodactyl',
},
{
type: 'quests',
path: 'quests.rock',
path: 'quests.trex',
},
];
}