Merge branch 'develop' into sabrecat/teams-rebase
This commit is contained in:
Generated
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "habitica",
|
||||
"version": "4.226.0",
|
||||
"version": "4.226.1",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "habitica",
|
||||
"description": "A habit tracker app which treats your goals like a Role Playing Game.",
|
||||
"version": "4.226.0",
|
||||
"version": "4.226.1",
|
||||
"main": "./website/server/index.js",
|
||||
"dependencies": {
|
||||
"@babel/core": "^7.17.8",
|
||||
|
||||
@@ -19,6 +19,11 @@
|
||||
top: -16px !important;
|
||||
}
|
||||
|
||||
.Pet.Pet-FlyingPig-Veggie, .Pet.Pet-FlyingPig-Dessert {
|
||||
.Pet.Pet-FlyingPig-Veggie, .Pet.Pet-FlyingPig-Dessert, .Pet.Pet-FlyingPig-Virtual {
|
||||
top: -28px !important;
|
||||
}
|
||||
|
||||
.Pet[class*="Virtual"] {
|
||||
left: 1.25rem;
|
||||
bottom: 0.5rem;
|
||||
}
|
||||
|
||||
@@ -79,7 +79,6 @@
|
||||
></span>
|
||||
<!-- Pet-->
|
||||
<span
|
||||
v-if="member.items.currentPet"
|
||||
class="current-pet"
|
||||
:class="petClass"
|
||||
></span>
|
||||
@@ -131,10 +130,12 @@
|
||||
import some from 'lodash/some';
|
||||
import moment from 'moment';
|
||||
import { mapState } from '@/libs/store';
|
||||
import foolPet from '../mixins/foolPet';
|
||||
|
||||
import ClassBadge from '@/components/members/classBadge';
|
||||
|
||||
export default {
|
||||
mixins: [foolPet],
|
||||
components: {
|
||||
ClassBadge,
|
||||
},
|
||||
@@ -243,11 +244,12 @@ export default {
|
||||
petClass () {
|
||||
if (some(
|
||||
this.currentEventList,
|
||||
event => moment().isBetween(event.start, event.end) && event.aprilFools && event.aprilFools === 'invert',
|
||||
event => moment().isBetween(event.start, event.end) && event.aprilFools && event.aprilFools === 'virtual',
|
||||
)) {
|
||||
return `Pet-${this.member.items.currentPet} invert`;
|
||||
return this.foolPet(this.member.items.currentPet);
|
||||
}
|
||||
return `Pet-${this.member.items.currentPet}`;
|
||||
if (this.member.items.currentPet) return `Pet-${this.member.items.currentPet}`;
|
||||
return '';
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
|
||||
@@ -114,11 +114,13 @@ import some from 'lodash/some';
|
||||
import moment from 'moment';
|
||||
import { v4 as uuid } from 'uuid';
|
||||
import { mapState } from '@/libs/store';
|
||||
import foolPet from '@/mixins/foolPet';
|
||||
import {
|
||||
isAllowedToFeed, isHatchable, isOwned, isSpecial,
|
||||
} from '../../../libs/createAnimal';
|
||||
|
||||
export default {
|
||||
mixins: [foolPet],
|
||||
props: {
|
||||
item: {
|
||||
type: Object,
|
||||
@@ -169,9 +171,10 @@ export default {
|
||||
getPetItemClass () {
|
||||
if (this.isOwned() && some(
|
||||
this.currentEventList,
|
||||
event => moment().isBetween(event.start, event.end) && event.aprilFools && event.aprilFools === 'invert',
|
||||
event => moment().isBetween(event.start, event.end) && event.aprilFools && event.aprilFools === 'virtual',
|
||||
)) {
|
||||
return `Pet Pet-${this.item.key} ${this.item.eggKey} invert`;
|
||||
const petString = `${this.item.eggKey}-${this.item.key}`;
|
||||
return `Pet ${this.foolPet(petString)}`;
|
||||
}
|
||||
|
||||
if (this.isOwned() || (this.mountOwned() && this.isHatchable())) {
|
||||
|
||||
@@ -0,0 +1,53 @@
|
||||
import includes from 'lodash/includes';
|
||||
|
||||
export default {
|
||||
methods: {
|
||||
foolPet (pet) {
|
||||
const SPECIAL_PETS = [
|
||||
'Wolf-Veteran',
|
||||
'Wolf-Cerberus',
|
||||
'Dragon-Hydra',
|
||||
'Turkey-Base',
|
||||
'BearCub-Polar',
|
||||
'MantisShrimp-Base',
|
||||
'JackOLantern-Base',
|
||||
'Mammoth-Base',
|
||||
'Tiger-Veteran',
|
||||
'Phoenix-Base',
|
||||
'Turkey-Gilded',
|
||||
'MagicalBee-Base',
|
||||
'Lion-Veteran',
|
||||
'Gryphon-RoyalPurple',
|
||||
'JackOLantern-Ghost',
|
||||
'Jackalope-RoyalPurple',
|
||||
'Orca-Base',
|
||||
'Bear-Veteran',
|
||||
'Hippogriff-Hopeful',
|
||||
'Fox-Veteran',
|
||||
'JackOLantern-Glow',
|
||||
'Gryphon-Gryphatrice',
|
||||
'JackOLantern-RoyalPurple',
|
||||
];
|
||||
const BASE_PETS = [
|
||||
'Wolf',
|
||||
'TigerCub',
|
||||
'PandaCub',
|
||||
'LionCub',
|
||||
'Fox',
|
||||
'FlyingPig',
|
||||
'BearCub',
|
||||
'Dragon',
|
||||
'Cactus',
|
||||
];
|
||||
if (!pet) return 'Pet-Cactus-Virtual';
|
||||
if (SPECIAL_PETS.indexOf(pet) !== -1) {
|
||||
return 'Pet-Wolf-Virtual';
|
||||
}
|
||||
const species = pet.slice(0, pet.indexOf('-'));
|
||||
if (includes(BASE_PETS, species)) {
|
||||
return `Pet-${species}-Virtual`;
|
||||
}
|
||||
return 'Pet-Fox-Virtual';
|
||||
},
|
||||
},
|
||||
};
|
||||
@@ -431,7 +431,7 @@
|
||||
"weaponSpecialSpring2022RogueText": "Giant Earring Stud",
|
||||
"weaponSpecialSpring2022RogueNotes": "A shiny! It’s so shiny and gleaming and pretty and nice and all yours! Increases Strength by <%= str %>. Limited Edition 2022 Spring Gear.",
|
||||
"weaponSpecialSpring2022WarriorText": "Inside-Out Umbrella",
|
||||
"weaponSpecialSpring2022WarriorNotes": "Yikes! Guess that wind was a little stronger than you thought, huh? Increases Strength by <%= str %>, Limited Edition 2022 Spring Gear.",
|
||||
"weaponSpecialSpring2022WarriorNotes": "Yikes! Guess that wind was a little stronger than you thought, huh? Increases Strength by <%= str %>. Limited Edition 2022 Spring Gear.",
|
||||
"weaponSpecialSpring2022MageText": "Forsythia Staff",
|
||||
"weaponSpecialSpring2022MageNotes": "These bright yellow bells are ready to channel your powerful springtime magic. Increases Intelligence by <%= int %> and Perception by <%= per %>. Limited Edition 2022 Spring Gear.",
|
||||
"weaponSpecialSpring2022HealerText": "Peridot Wand",
|
||||
@@ -1042,9 +1042,9 @@
|
||||
"armorSpecialSpring2022WarriorText": "Rain Slicker",
|
||||
"armorSpecialSpring2022WarriorNotes": "This slicker and boots are so formidable you could sing in the rain or jump in every puddle but still be warm and dry! Increases Constitution by <%= con %>. Limited Edition 2022 Spring Gear.",
|
||||
"armorSpecialSpring2022MageText": "Forsythia Robe",
|
||||
"armorSpecialSpring2022MageNotes": "Show you’re ready to spring forward into the season with this robe adorned with forsythia flower petals. Intelligence by <%= int %>.Limited Edition 2022 Spring Gear.",
|
||||
"armorSpecialSpring2022MageNotes": "Show you’re ready to spring forward into the season with this robe adorned with forsythia flower petals. Increases Intelligence by <%= int %>. Limited Edition 2022 Spring Gear.",
|
||||
"armorSpecialSpring2022HealerText": "Peridot Armor",
|
||||
"armorSpecialSpring2022HealerNotes": " Drive away fears and nightmares simply by wearing this green gem garment. Increases Constitution by <%= con %>. Limited Edition 2022 Spring Gear.",
|
||||
"armorSpecialSpring2022HealerNotes": "Drive away fears and nightmares simply by wearing this green gem garment. Increases Constitution by <%= con %>. Limited Edition 2022 Spring Gear.",
|
||||
|
||||
"armorMystery201402Text": "Messenger Robes",
|
||||
"armorMystery201402Notes": "Shimmering and strong, these robes have many pockets to carry letters. Confers no benefit. February 2014 Subscriber Item.",
|
||||
@@ -1737,7 +1737,7 @@
|
||||
"headSpecialSpring2022WarriorText": "Rain Slicker Hood",
|
||||
"headSpecialSpring2022WarriorNotes": "Tut tut, it looks like rain! Stand tall and pull up your hood to stay dry. Increases Strength by <%= str %>. Limited Edition 2022 Spring Gear.",
|
||||
"headSpecialSpring2022MageText": "Forsythia Helmet",
|
||||
"headSpecialSpring2022MageNotes": "Stay dry during a rainstorm with this protective helmet of downturned petals.Increases Perception by <%= per %>. Limited Edition 2022 Spring Gear.",
|
||||
"headSpecialSpring2022MageNotes": "Stay dry during a rainstorm with this protective helmet of downturned petals. Increases Perception by <%= per %>. Limited Edition 2022 Spring Gear.",
|
||||
"headSpecialSpring2022HealerText": "Peridot Helmet",
|
||||
"headSpecialSpring2022HealerNotes": "This mysterious helmet preserves your privacy as you tackle your tasks. Increases Intelligence by <%= int %>. Limited Edition 2022 Spring Gear.",
|
||||
|
||||
|
||||
@@ -127,7 +127,7 @@
|
||||
"achievementZodiacZookeeper": "Le Zoo-diaque",
|
||||
"achievementZodiacZookeeperModalText": "Vous avez collecté tous les familiers du zodiaque !",
|
||||
"achievementZodiacZookeeperText": "A collecté tous les familiers du zodiaque : Rat, Vache, Lapin, Serpent, Cheval, Mouton, Singe, Coq, Loup, Tigre, Cochon volant et Dragon !",
|
||||
"achievementBirdsOfAFeatherText": "A collecté tous les familiers volants : Cochon volant, Hibou, Perroquet, Pterodactyle, Griffon, et Faucon.",
|
||||
"achievementBirdsOfAFeatherText": "A collecté tous les familiers volants : Cochon volant, Hibou, Perroquet, Pterodactyle, Griffon, Faucon, Paon et Coq.",
|
||||
"achievementBirdsOfAFeather": "Oiseaux à une Plume",
|
||||
"achievementBirdsOfAFeatherModalText": "Vous avez collecté tous les familiers volants !"
|
||||
}
|
||||
|
||||
@@ -2608,5 +2608,11 @@
|
||||
"headSpecialSpring2022RogueNotes": "Faites preuve d'autant d'intelligence qu'une pie en portant ce masque. Peut-être serez vous également capable de siffler, de triller et d'imitée comme l'une d'elles, aussi. Augmente la perception de <%= per %>. Équipement en édition limitée du printemps 2022.",
|
||||
"headSpecialSpring2022MageNotes": "Restez au sec pendant les pluies diluviennes avec ce casque protecteur avec des rebords à pétales. Augmente la perception de <%= per %>. Équipement en édition limitée du printemps 2022.",
|
||||
"shieldSpecialSpring2022WarriorNotes": "Vous avez déjà eu l'impression qu'un nuage pluvieux vous suivait où que vous alliez ? Réjouissez-vous, parce que bientôt les plus jolies fleurs pousseront à vos pieds ! Augmente la constitution de <%= con %>. Équipement en édition limitée du printemps 2022.",
|
||||
"shieldSpecialSpring2022WarriorText": "Nuage pluvieux"
|
||||
"shieldSpecialSpring2022WarriorText": "Nuage pluvieux",
|
||||
"armorMystery202204Text": "Capsule d'aventure virtuelle",
|
||||
"armorMystery202204Notes": "On dirait que vos tâches requièrent maintenant d'appuyer sur ces mystérieux boutons ! Que peuvent-ils bien faire ? Ne confère aucun bonus. Équipement d'abonnement d'avril 2022.",
|
||||
"eyewearMystery202204BText": "Visage virtuel",
|
||||
"eyewearMystery202204BNotes": "Quelle est votre humeur du jour ? Exprimez vous avec ces écrans amusants. Ne confère aucun bonus. Équipement d'abonnement d'avril 2022.",
|
||||
"eyewearMystery202204AText": "Visage virtuel",
|
||||
"eyewearMystery202204ANotes": "Quelle est votre humeur du jour ? Exprimez vous avec ces écrans amusants. Ne confère aucun bonus. Équipement d'abonnement d'avril 2022."
|
||||
}
|
||||
|
||||
@@ -202,5 +202,6 @@
|
||||
"mysterySet202112": "Ensemble d'ondine antarctique",
|
||||
"mysterySet202201": "Ensemble de gaieté de cœur de minuit",
|
||||
"mysterySet202202": "Ensemble de queues jumelles turquoise",
|
||||
"mysterySet202203": "Ensemble de libellule intrépide"
|
||||
"mysterySet202203": "Ensemble de libellule intrépide",
|
||||
"mysterySet202204": "Ensemble d'aventure virtuelle"
|
||||
}
|
||||
|
||||
@@ -2576,5 +2576,7 @@
|
||||
"weaponArmoireGardenersWateringCanText": "じょうろ",
|
||||
"weaponArmoireGardenersWateringCanNotes": "水なしじゃ何事も上手くいきません!この魔法の水源じょうろで無限の供給を手にしましょう。知能が<%= int %>上がります。ラッキー宝箱:ガーデナーセット(4個中4個目のアイテム)。",
|
||||
"armorArmoireGardenersOverallsText": "ガーデナーのオーバーオール",
|
||||
"armorArmoireGardenersOverallsNotes": "この丈夫なオーバーオールを着ているときは土の作業を怖がらなくても大丈夫。体質が<%= con %>上がります。ラッキー宝箱:ガーデナーセット(4個中1個目のアイテム)。"
|
||||
"armorArmoireGardenersOverallsNotes": "この丈夫なオーバーオールを着ているときは土の作業を怖がらなくても大丈夫。体質が<%= con %>上がります。ラッキー宝箱:ガーデナーセット(4個中1個目のアイテム)。",
|
||||
"weaponSpecialSpring2022RogueText": "大きなボタン型ピアス",
|
||||
"weaponSpecialSpring2022RogueNotes": "ぴっかぴか!輝いてて光ってて可愛くってステキでしかもあなたのもの!力が<%= str %>上がります。2022年春の限定装備。"
|
||||
}
|
||||
|
||||
@@ -200,5 +200,6 @@
|
||||
"mysterySet202112": "南極のウィディーネセット",
|
||||
"mysterySet202201": "夜中にはしゃぐセット",
|
||||
"mysterySet202202": "ターコイズツインテールセット",
|
||||
"mysterySet202203": "不屈のトンボセット"
|
||||
"mysterySet202203": "不屈のトンボセット",
|
||||
"mysterySet202204": "バーチャルアドベンチャーセット"
|
||||
}
|
||||
|
||||
@@ -22,6 +22,11 @@ export const EVENTS = {
|
||||
season: 'spring',
|
||||
gear: true,
|
||||
},
|
||||
aprilFools2022: {
|
||||
start: '2022-04-01T08:00-05:00',
|
||||
end: '2022-04-02T08:00-05:00',
|
||||
aprilFools: 'virtual',
|
||||
},
|
||||
valentines2022: {
|
||||
start: '2022-02-14T08:00-05:00',
|
||||
end: '2022-02-18T20:00-05:00',
|
||||
|
||||
Reference in New Issue
Block a user