diff --git a/migrations/20140130_birthdayEnd.js b/migrations/20140130_birthdayEnd.js new file mode 100644 index 0000000000..a9a8eb93bc --- /dev/null +++ b/migrations/20140130_birthdayEnd.js @@ -0,0 +1 @@ +db.users.update({},{$set:{'achievements.habitBirthday':true}},{multi:1}) diff --git a/migrations/20140130_birthdayStart.js b/migrations/20140130_birthdayStart.js new file mode 100644 index 0000000000..458f699c5c --- /dev/null +++ b/migrations/20140130_birthdayStart.js @@ -0,0 +1,13 @@ +db.users.update({},{$set:{ + 'items.food.Cake_Skeleton':1, + 'items.food.Cake_Base':1, + 'items.food.Cake_Base':1, + 'items.food.Cake_CottonCandyBlue':1, + 'items.food.Cake_CottonCandyPink':1, + 'items.food.Cake_Shade':1, + 'items.food.Cake_White':1, + 'items.food.Cake_Golden':1, + 'items.food.Cake_Zombie':1, + 'items.food.Cake_Desert':1, + 'items.food.Cake_Red':1 +}},{multi:1}) diff --git a/src/models/user.js b/src/models/user.js index 391810fb54..506fb505b7 100644 --- a/src/models/user.js +++ b/src/models/user.js @@ -41,7 +41,8 @@ var UserSchema = new Schema({ quests: Schema.Types.Mixed, rebirths: Number, rebirthLevel: Number, - perfect: Number + perfect: Number, + habitBirthday: Boolean }, auth: { facebook: Schema.Types.Mixed, diff --git a/views/options/inventory/inventory.jade b/views/options/inventory/inventory.jade index ee228041dc..66bc97c7f1 100644 --- a/views/options/inventory/inventory.jade +++ b/views/options/inventory/inventory.jade @@ -100,7 +100,7 @@ script(type='text/ng-template', id='partials/options.inventory.drops.html') li.customize-menu menu.pets-menu(label=env.t('food')) - div(ng-repeat='food in Content.food', ng-show='food.key !== "Saddle"') + div(ng-repeat='food in Content.food', ng-if='food.key !== "Saddle" && food.canBuy') button.customize-option(popover='{{food.notes}}', popover-title='{{food.text}}', popover-trigger='mouseenter', popover-placement='left', ng-click='purchase("food", food)', class='Pet_Food_{{food.key}}') p | {{food.value}} diff --git a/views/shared/modals/new-stuff.jade b/views/shared/modals/new-stuff.jade index 9eb471415b..e2a584d133 100644 --- a/views/shared/modals/new-stuff.jade +++ b/views/shared/modals/new-stuff.jade @@ -29,24 +29,50 @@ div(modal='modals.newStuff') table.table.table-striped tr td - h5 Group Plans - p We've begun adding plans for groups (parents, teachers, health & wellness administrators, etc). These plans will provide group leaders with more control, privacy, security, and support. Currently only the Organization Plan (top tier) is available (due to tech limitations believe it or not), and we'll be releasing the Family & Group plans later. Click the "Contact Us" buttons if you're interested, and we'll keep you updated! + h5 Happy Birthday, HabitRPG! + p The fair land of Habitica is two years old today! The NPCs are celebrating in style, and it looks like some of the staff is, too! Won't you join in? tr td - h5 Individual Plan - p We've introduced a $5/mo basic subscription plan. It comes with a number of perks, which you can see here. We'll likely add more benefits over time, follow the conversation here. + h5 Absurd Party Robtes + p As part of the festivities, Absurd Party Robes are available free of charge in the Item Store! Swath yourself in those silly garbs and don your matching hats to celebrate this momentous day. tr td - h5 Perfect Day Achievement - p Now when you complete all your dailies, you stack this badge, plus and additional perk: you get a +(level/2) buff to all stats! + h5 Delicious Cake + p What would a birthday be without birthday cake in a myriad of flavors? Of course, pets are very picky, but luckily Lemoness and her team of bakers have plenty of slices to go around. Mmm, delicious! tr td - h5 Spread The Word Challenge Update - p We have 1k+ submissions, holy cow! Great job everyone! Now, we need to go through these manually, so it will take a few days to a couple weeks to process. The challenge will stay open until we're done choosing our winners, but be sure to edit the To-Do with your submission URL before 1/31, as that's the cut-off date for processing. We'll send a Tweet out when the winner has been selected, so follow @habitrpg and stay tuned. + h5 Last Day of Winter Wonderland Event + p Also, just a reminder - this is the final day of the Winter Wonderland event, so it's your last day to get the Limited Edition Winter Hair Colors, the Winter Outfits, the snowballs, and the Trapper Santa and Find the Cub quest scrolls. (Remember that if you are in the middle of a Trapper Santa or Find the Cub Quest, it will continue! Only the scrolls will disappear.) We hope that you've had a wonderful winter! + tr + td + h5 Birthday Bash Badge + p Finally, to commemorate the fun, all party participants receive a birthday badge! Polish it frequently and wear it fondly. + p Thanks so much for being a part of the HabitRPG community. We love you guys, and we can't wait to have you at our sides in the upcoming year! Stay productive, Habiteers, and have an awesome day. + p.muted By @lemoness - small.muted 01/28/2014 + small.muted 01/30/2014 + + hr + h5 01/28/2014 + table.table.table-striped + tr + td + h5 Group Plans + p We've begun adding plans for groups (parents, teachers, health & wellness administrators, etc). These plans will provide group leaders with more control, privacy, security, and support. Currently only the Organization Plan (top tier) is available (due to tech limitations believe it or not), and we'll be releasing the Family & Group plans later. Click the "Contact Us" buttons if you're interested, and we'll keep you updated! + tr + td + h5 Individual Plan + p We've introduced a $5/mo basic subscription plan. It comes with a number of perks, which you can see here. We'll likely add more benefits over time, follow the conversation here. + tr + td + h5 Perfect Day Achievement + p Now when you complete all your dailies, you stack this badge, plus and additional perk: you get a +(level/2) buff to all stats! + tr + td + h5 Spread The Word Challenge Update + p We have 1k+ submissions, holy cow! Great job everyone! Now, we need to go through these manually, so it will take a few days to a couple weeks to process. The challenge will stay open until we're done choosing our winners, but be sure to edit the To-Do with your submission URL before 1/31, as that's the cut-off date for processing. We'll send a Tweet out when the winner has been selected, so follow @habitrpg and stay tuned. hr h5 01/25/2014 diff --git a/views/shared/profiles/achievements.jade b/views/shared/profiles/achievements.jade index a2628a7801..2ef6789a86 100644 --- a/views/shared/profiles/achievements.jade +++ b/views/shared/profiles/achievements.jade @@ -123,3 +123,11 @@ small =env.t('annoyingFriendsText', {snowballs: "{{profile.achievements.snowball}}"}) hr + + div(ng-if='profile.achievements.habitBirthday') + .achievement.achievement-habitBirthday + h5=env.t('habitBirthday') + small + =env.t('habitBirthdayText') + hr +