mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-08-03 04:29:40 +00:00
parent
999202a8a5
commit
82e9afe9ce
3 changed files with 21 additions and 2 deletions
2
npm-shrinkwrap.json
generated
2
npm-shrinkwrap.json
generated
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "habitica",
|
||||
"version": "3.83.3",
|
||||
"version": "3.83.4",
|
||||
"dependencies": {
|
||||
"@gulp-sourcemaps/map-sources": {
|
||||
"version": "1.0.0",
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "habitica",
|
||||
"description": "A habit tracker app which treats your goals like a Role Playing Game.",
|
||||
"version": "3.83.3",
|
||||
"version": "3.83.4",
|
||||
"main": "./website/server/index.js",
|
||||
"dependencies": {
|
||||
"@slack/client": "^3.8.1",
|
||||
|
|
|
|||
|
|
@ -24,6 +24,25 @@ html(ng-app="habitrpg")
|
|||
window.habitrpg
|
||||
.controller('StaticAvatarCtrl', ['$scope', function($scope){
|
||||
$scope.profile = window.env.user;
|
||||
$scope.aprilFool = function (pet) {
|
||||
if (!pet) return 'Pet-AprilFool-None';
|
||||
if (pet === 'Phoenix-Base') return 'Pet-AprilFool-Red';
|
||||
var petStringArray = pet.split('-');
|
||||
var petColor = petStringArray[1];
|
||||
var standardColors = ['Base', 'CottonCandyBlue', 'CottonCandyPink', 'Desert', 'Golden', 'Red', 'Shade', 'Skeleton', 'White', 'Zombie'];
|
||||
if (standardColors.indexOf(petColor) !== -1) return 'Pet-AprilFool-' + petColor;
|
||||
if (petColor === 'Cerberus') return 'Pet-AprilFool-Zombie';
|
||||
if (petColor === 'Cupid') return 'Pet-AprilFool-CottonCandyPink';
|
||||
if (petColor === 'Ghost') return 'Pet-AprilFool-Skeleton';
|
||||
if (petColor === 'Gilded') return 'Pet-AprilFool-Golden';
|
||||
if (petColor === 'Hydra') return 'Pet-AprilFool-Zombie';
|
||||
if (petColor === 'Polar') return 'Pet-AprilFool-White';
|
||||
if (petColor === 'RoyalPurple') return 'Pet-AprilFool-Golden';
|
||||
if (petColor === 'Shimmer') return 'Pet-AprilFool-Red';
|
||||
if (petColor === 'Spooky') return 'Pet-AprilFool-Zombie';
|
||||
if (petColor === 'Veteran') return 'Pet-AprilFool-Shade';
|
||||
return 'Pet-AprilFool-Magic';
|
||||
}
|
||||
}])
|
||||
|
||||
//webfonts
|
||||
|
|
|
|||
Loading…
Reference in a new issue