feat(content): add June pet quest bundle (#14694)

* feat(content): add June subscriber items

* feat(content): add June pet quest bundle

* fix(bundle): correct timing and visual issues

---------

Co-authored-by: SabreCat <sabe@habitica.com>
This commit is contained in:
Natalie L
2023-06-12 16:01:34 -04:00
committed by GitHub
parent a5ae3e5877
commit ab68e8a5fe
6 changed files with 13 additions and 13 deletions

View File

@@ -16,9 +16,6 @@
.limitedTime {
height: 32px;
width: calc(100% + 30px);
margin: 0 -15px; // the modal content has its own padding
font-size: 12px;
line-height: 1.33;
text-align: center;

View File

@@ -89,7 +89,7 @@
</button>
<button
v-else
class="btn btn-primary"
class="btn btn-primary mb-4"
:class="{'notEnough': !enoughCurrency(priceType, item.value * selectedAmountToBuy)}"
:disabled="numberInvalid"
@click="buyItem()"
@@ -141,7 +141,6 @@
border-bottom-right-radius: 8px;
border-bottom-left-radius: 8px;
display: block;
margin-top: 24px;
padding: 16px 24px;
align-content: center;

View File

@@ -586,7 +586,7 @@
"questNudibranchUnlockText": "Unlocks Nudibranch Eggs for purchase in the Market",
"splashyPalsText": "Splashy Pals Quest Bundle",
"splashyPalsNotes": "Contains 'The Dilatory Derby', 'Guide the Turtle', and 'Wail of the Whale'. Available until July 31.",
"splashyPalsNotes": "Contains 'The Dilatory Derby', 'Guide the Turtle', and 'Wail of the Whale'. Available until June 30.",
"questHippoText": "What a Hippo-Crite",
"questHippoNotes": "You and @awesomekitty collapse into the shade of a palm tree, exhausted. The sun beats down over the Sloensteadi Savannah, scorching the ground below. Its been a productive day so far, conquering your Dailies, and this oasis looks like a nice place to take a break and refresh. Stooping near the water to get a drink, you stumble back in shock as a massive hippopotamus rises. “Resting so soon? Dont be so lazy, get back to work.” You try and protest that youve been working hard and need a break, but the hippo isnt having any of it.<br><br>@khdarkwolf whispers to you, “Notice how its lounging around all day but has the nerve to call you lazy? Its the Hippo-Crite!”<br><br>Your friend @jumorales nods. “Lets show it what hard work looks like!”",

View File

@@ -35,9 +35,9 @@ const bundles = {
'turtle',
'whale',
],
event: EVENTS.bundle202106,
event: EVENTS.bundle202306,
canBuy () {
return moment().isBefore(EVENTS.bundle202106.end);
return moment().isBetween(EVENTS.bundle202306.start, EVENTS.bundle202306.end);
},
type: 'quests',
class: 'quest_bundle_splashyPals',

View File

@@ -10,11 +10,15 @@ const gemsPromo = {
export const EVENTS = {
noEvent: {
start: '2023-05-31T23:59-04:00',
end: '2023-06-22T08:00-04:00',
start: '2023-06-13T23:59-04:00',
end: '2023-06-30T08:00-04:00',
season: 'normal',
npcImageSuffix: '',
},
bundle202306: {
start:'2023-06-13T08:00-04:00',
end:'2023-06-30T23:59-04:00',
},
bundle202305: {
start:'2023-05-23T08:00-04:00',
end:'2023-05-31T23:59-04:00',

View File

@@ -44,12 +44,12 @@ const featuredItems = {
},
];
},
quests () { // start date is 3/28
if (moment().isBetween(EVENTS.bundle202305.start, EVENTS.bundle202305.end)) {
quests () {
if (moment().isBetween(EVENTS.bundle202306.start, EVENTS.bundle202306.end)) {
return [
{
type: 'bundles',
path: 'bundles.birdBuddies',
path: 'bundles.splashyPals',
},
{
type: 'quests',