mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 14:47:53 +01:00
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:
@@ -16,9 +16,6 @@
|
|||||||
|
|
||||||
.limitedTime {
|
.limitedTime {
|
||||||
height: 32px;
|
height: 32px;
|
||||||
width: calc(100% + 30px);
|
|
||||||
margin: 0 -15px; // the modal content has its own padding
|
|
||||||
|
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
line-height: 1.33;
|
line-height: 1.33;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
|||||||
@@ -89,7 +89,7 @@
|
|||||||
</button>
|
</button>
|
||||||
<button
|
<button
|
||||||
v-else
|
v-else
|
||||||
class="btn btn-primary"
|
class="btn btn-primary mb-4"
|
||||||
:class="{'notEnough': !enoughCurrency(priceType, item.value * selectedAmountToBuy)}"
|
:class="{'notEnough': !enoughCurrency(priceType, item.value * selectedAmountToBuy)}"
|
||||||
:disabled="numberInvalid"
|
:disabled="numberInvalid"
|
||||||
@click="buyItem()"
|
@click="buyItem()"
|
||||||
@@ -141,7 +141,6 @@
|
|||||||
border-bottom-right-radius: 8px;
|
border-bottom-right-radius: 8px;
|
||||||
border-bottom-left-radius: 8px;
|
border-bottom-left-radius: 8px;
|
||||||
display: block;
|
display: block;
|
||||||
margin-top: 24px;
|
|
||||||
padding: 16px 24px;
|
padding: 16px 24px;
|
||||||
align-content: center;
|
align-content: center;
|
||||||
|
|
||||||
|
|||||||
@@ -586,7 +586,7 @@
|
|||||||
"questNudibranchUnlockText": "Unlocks Nudibranch Eggs for purchase in the Market",
|
"questNudibranchUnlockText": "Unlocks Nudibranch Eggs for purchase in the Market",
|
||||||
|
|
||||||
"splashyPalsText": "Splashy Pals Quest Bundle",
|
"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",
|
"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. It’s 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? Don’t be so lazy, get back to work.” You try and protest that you’ve been working hard and need a break, but the hippo isn’t having any of it.<br><br>@khdarkwolf whispers to you, “Notice how it’s lounging around all day but has the nerve to call you lazy? It’s the Hippo-Crite!”<br><br>Your friend @jumorales nods. “Let’s show it what hard work looks like!”",
|
"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. It’s 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? Don’t be so lazy, get back to work.” You try and protest that you’ve been working hard and need a break, but the hippo isn’t having any of it.<br><br>@khdarkwolf whispers to you, “Notice how it’s lounging around all day but has the nerve to call you lazy? It’s the Hippo-Crite!”<br><br>Your friend @jumorales nods. “Let’s show it what hard work looks like!”",
|
||||||
|
|||||||
@@ -35,9 +35,9 @@ const bundles = {
|
|||||||
'turtle',
|
'turtle',
|
||||||
'whale',
|
'whale',
|
||||||
],
|
],
|
||||||
event: EVENTS.bundle202106,
|
event: EVENTS.bundle202306,
|
||||||
canBuy () {
|
canBuy () {
|
||||||
return moment().isBefore(EVENTS.bundle202106.end);
|
return moment().isBetween(EVENTS.bundle202306.start, EVENTS.bundle202306.end);
|
||||||
},
|
},
|
||||||
type: 'quests',
|
type: 'quests',
|
||||||
class: 'quest_bundle_splashyPals',
|
class: 'quest_bundle_splashyPals',
|
||||||
|
|||||||
@@ -10,11 +10,15 @@ const gemsPromo = {
|
|||||||
|
|
||||||
export const EVENTS = {
|
export const EVENTS = {
|
||||||
noEvent: {
|
noEvent: {
|
||||||
start: '2023-05-31T23:59-04:00',
|
start: '2023-06-13T23:59-04:00',
|
||||||
end: '2023-06-22T08:00-04:00',
|
end: '2023-06-30T08:00-04:00',
|
||||||
season: 'normal',
|
season: 'normal',
|
||||||
npcImageSuffix: '',
|
npcImageSuffix: '',
|
||||||
},
|
},
|
||||||
|
bundle202306: {
|
||||||
|
start:'2023-06-13T08:00-04:00',
|
||||||
|
end:'2023-06-30T23:59-04:00',
|
||||||
|
},
|
||||||
bundle202305: {
|
bundle202305: {
|
||||||
start:'2023-05-23T08:00-04:00',
|
start:'2023-05-23T08:00-04:00',
|
||||||
end:'2023-05-31T23:59-04:00',
|
end:'2023-05-31T23:59-04:00',
|
||||||
|
|||||||
@@ -44,12 +44,12 @@ const featuredItems = {
|
|||||||
},
|
},
|
||||||
];
|
];
|
||||||
},
|
},
|
||||||
quests () { // start date is 3/28
|
quests () {
|
||||||
if (moment().isBetween(EVENTS.bundle202305.start, EVENTS.bundle202305.end)) {
|
if (moment().isBetween(EVENTS.bundle202306.start, EVENTS.bundle202306.end)) {
|
||||||
return [
|
return [
|
||||||
{
|
{
|
||||||
type: 'bundles',
|
type: 'bundles',
|
||||||
path: 'bundles.birdBuddies',
|
path: 'bundles.splashyPals',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'quests',
|
type: 'quests',
|
||||||
|
|||||||
Reference in New Issue
Block a user