From 4ebc2953f5d00cb5b5e3fa8cc0565f8957414d85 Mon Sep 17 00:00:00 2001 From: Sabe Jones Date: Thu, 29 Jan 2015 13:02:26 -0600 Subject: [PATCH 1/7] feat(event): Habit Birthday 2015 --- migrations/20150130_birthday_goodies.js | 39 +++++++++++++++++++++++++ src/models/user.js | 1 + views/shared/profiles/achievements.jade | 6 ++-- 3 files changed, 44 insertions(+), 2 deletions(-) create mode 100644 migrations/20150130_birthday_goodies.js diff --git a/migrations/20150130_birthday_goodies.js b/migrations/20150130_birthday_goodies.js new file mode 100644 index 0000000000..5e4d84d1b6 --- /dev/null +++ b/migrations/20150130_birthday_goodies.js @@ -0,0 +1,39 @@ +db.users.update( + {'items.gear.owned.armor_special_birthday':{$ne:null}}, + {$set:{'items.gear.owned.armor_special_birthday2015':false}}, + {multi:1} +) + +db.users.update( + {'items.gear.owned.armor_special_birthday':null}, + {$set:{'items.gear.owned.armor_special_birthday':false}}, + {multi:1} +) + +db.users.update({},{$inc:{ + 'items.food.Cake_Skeleton':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}) + +db.users.update( + {'profile.achievements.habitBirthday':true}, + {$set:{ + 'profile.achievements.habitBirthday':null, + 'profile.achievements.habitBirthdays':1 + }}, + {multi:1} +) + +db.users.update( + {}, + {$inc:{'profile.achievements.habitBirthdays':1}}, + {multi:1} +) \ No newline at end of file diff --git a/src/models/user.js b/src/models/user.js index f33984417e..037f73903a 100644 --- a/src/models/user.js +++ b/src/models/user.js @@ -50,6 +50,7 @@ var UserSchema = new Schema({ rebirthLevel: Number, perfect: Number, habitBirthday: Boolean, + habitBirthdays: Number, valentine: Number, costumeContest: Boolean, nye: Number diff --git a/views/shared/profiles/achievements.jade b/views/shared/profiles/achievements.jade index af414f15b5..07990d00bd 100644 --- a/views/shared/profiles/achievements.jade +++ b/views/shared/profiles/achievements.jade @@ -168,11 +168,13 @@ div(ng-if='profile.achievements.spookDust') =env.t('alarmingFriendsText', {spookDust: "{{profile.achievements.spookDust}}"}) hr -div(ng-if='::profile.achievements.habitBirthday') +div(ng-if='::profile.achievements.habitBirthdays') .achievement.achievement-habitBirthday h5=env.t('habitBirthday') - small + small(ng-if='::profile.achievements.habitBirthdays == 1') =env.t('habitBirthdayText') + small(ng-if='::profile.achievements.habitBirthdays > 1') + =env.t('habitBirthdayPluralText', {number: "{{profile.achievements.habitBirthdays}}"}) hr div(ng-if='::profile.achievements.valentine') From a654d7ea10748010885fdcf0f1845c63c985e6b9 Mon Sep 17 00:00:00 2001 From: Sabe Jones Date: Thu, 29 Jan 2015 13:43:52 -0600 Subject: [PATCH 2/7] fix(event): Correct achievement award --- migrations/20150130_birthday_goodies.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/migrations/20150130_birthday_goodies.js b/migrations/20150130_birthday_goodies.js index 5e4d84d1b6..46327aed3d 100644 --- a/migrations/20150130_birthday_goodies.js +++ b/migrations/20150130_birthday_goodies.js @@ -24,16 +24,16 @@ db.users.update({},{$inc:{ }},{multi:1}) db.users.update( - {'profile.achievements.habitBirthday':true}, + {'achievements.habitBirthday':true}, {$set:{ - 'profile.achievements.habitBirthday':null, - 'profile.achievements.habitBirthdays':1 + 'achievements.habitBirthday':null, + 'achievements.habitBirthdays':1 }}, {multi:1} ) db.users.update( {}, - {$inc:{'profile.achievements.habitBirthdays':1}}, + {$inc:{'achievements.habitBirthdays':1}}, {multi:1} ) \ No newline at end of file From efd1333c06bb5572147a8d10b9dba6f5fb9d1c7c Mon Sep 17 00:00:00 2001 From: Sabe Jones Date: Thu, 29 Jan 2015 14:10:05 -0600 Subject: [PATCH 3/7] fix(event): Leave old achievement For better compatibility with mobile app. --- migrations/20150130_birthday_goodies.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/migrations/20150130_birthday_goodies.js b/migrations/20150130_birthday_goodies.js index 46327aed3d..6c7c2e08c5 100644 --- a/migrations/20150130_birthday_goodies.js +++ b/migrations/20150130_birthday_goodies.js @@ -25,10 +25,7 @@ db.users.update({},{$inc:{ db.users.update( {'achievements.habitBirthday':true}, - {$set:{ - 'achievements.habitBirthday':null, - 'achievements.habitBirthdays':1 - }}, + {$set:{'achievements.habitBirthdays':1}}, {multi:1} ) From 5188b17f540517208dab009528fc44f7c64e091f Mon Sep 17 00:00:00 2001 From: Sabe Jones Date: Thu, 29 Jan 2015 14:13:57 -0600 Subject: [PATCH 4/7] chore(user): Deprecation TODO --- src/models/user.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/models/user.js b/src/models/user.js index 037f73903a..16959f126a 100644 --- a/src/models/user.js +++ b/src/models/user.js @@ -49,7 +49,7 @@ var UserSchema = new Schema({ rebirths: Number, rebirthLevel: Number, perfect: Number, - habitBirthday: Boolean, + habitBirthday: Boolean, // TODO: Deprecate this. Superseded by habitBirthdays habitBirthdays: Number, valentine: Number, costumeContest: Boolean, From 0007e870edb821091d4e2334b4ecce1132168289 Mon Sep 17 00:00:00 2001 From: Sabe Jones Date: Fri, 30 Jan 2015 13:44:09 -0600 Subject: [PATCH 5/7] chore(news): Bailey --- views/shared/new-stuff.jade | 55 +++++++++++++++++++++++++------------ 1 file changed, 38 insertions(+), 17 deletions(-) diff --git a/views/shared/new-stuff.jade b/views/shared/new-stuff.jade index 727135e69d..78a29193d7 100644 --- a/views/shared/new-stuff.jade +++ b/views/shared/new-stuff.jade @@ -1,32 +1,53 @@ -h5 1/26/2015 - SUBSCRIBER OUTFIT REVEALED, NEW AUDIO THEME, QUEST SCROLL REDESIGN, AND SPREAD THE WORD CHALLENGE REMINDER +h5 1/30/2015 - HABITRPG BIRTHDAY BASH AND PARTY ROBES! PLUS, LAST CHANCE FOR STARRY KNIGHT ITEM SET, AND WINTER WONDERLAND OUTFITS AND HAIR COLORS! hr tr td - h5 Subscriber Outfit Revealed + h5 HabitRPG Birthday Bash + .npc_alex.pull-right + p January 31st is HabitRPG's Birthday! All of the NPCs are celebrating, and we've awarded you a bunch of cake for your pets and mounts! + tr + td + h5 Party Robes + .broad_armor_special_birthday.pull-right + .broad_armor_special_birthday2015.pull-right + p Until February 1st only, there are Party Robes available for free in the Rewards store! If this is your first Birthday bash with us, you can find some Absurd Party Robes; if you already got some last year, then you will find the Silly Party Robes. + tr + td + h5 Last Chance for Starry Knight Item Set .promo_mystery_201501.pull-right - p The January Subscriber Item has been revealed: the Starry Knight Item Set! All January subscribers will receive the Starry Helm and the Starry Armor. You still have five days to subscribe and receive the item set! Thank you so much for your support - we really do rely on you to keep HabitRPG free to use and running smoothly. - p.small.muted by Lemoness + p Reminder: this is the final day to subscribe and receive the Starry Knight Item Set! If you want the Starry Helm or the Starry Armor, now's the time! Thanks so much for your support <3 tr td - h5 New Audio Theme - p A new audio theme is available: Watts' Theme! You can toggle between Watts' Theme and Daniel the Bard's Theme by selecting the megaphone in the upper right-hand corner. Watts' Theme was created by Harry Pepe. You can visit his LinkedIn page here. - p.small.muted by Hpepe4 and Blade - tr - td - h5 Quest Scroll Redesign - p We've redesigned the quest scrolls so that they are visually unique! Quest type and difficulty is determined by the scroll lining (Easy Boss = Green, Medium Boss = Yellow, Hard Boss = Red, Collection Quest = Blue, Rage Bar Boss = Purple speckles), and an icon symbolizing the quest is located in the lower left. - p.small.muted by UncommonCriminal and Rattify - tr - td - h5 Spread the Word Challenge Ending Soon - p Reminder: January 31st is the last day to enter the Spread the Word Challenge for your chance at winning 100 gems! We will stop accepting new applications on February 1st, but it will be some time before the winners are announced because we have to go over all the entries ourselves. Good luck! + h5 Last Chance for Winter Wonderland Outfits + Hair Colors + .promo_winterclasses2015.pull-right + p Tomorrow everything will be back to normal in Habitica, so if you still have any remaining Winter Wonderland Items that you want to buy, you'd better do it now! The Seasonal Edition items and Hair Colors won't be back until next December, and if the Limited Edition items return they will have increased prices or changed art, so strike while the iron is hot! hr a(href='/static/old-news', target='_blank') Read older news mixin oldNews + h5 1/26/2015 + tr + td + h5 Subscriber Outfit Revealed + .promo_mystery_201501.pull-right + p The January Subscriber Item has been revealed: the Starry Knight Item Set! All January subscribers will receive the Starry Helm and the Starry Armor. You still have five days to subscribe and receive the item set! Thank you so much for your support - we really do rely on you to keep HabitRPG free to use and running smoothly. + p.small.muted by Lemoness + tr + td + h5 New Audio Theme + p A new audio theme is available: Watts' Theme! You can toggle between Watts' Theme and Daniel the Bard's Theme by selecting the megaphone in the upper right-hand corner. Watts' Theme was created by Harry Pepe. You can visit his LinkedIn page here. + p.small.muted by Hpepe4 and Blade + tr + td + h5 Quest Scroll Redesign + p We've redesigned the quest scrolls so that they are visually unique! Quest type and difficulty is determined by the scroll lining (Easy Boss = Green, Medium Boss = Yellow, Hard Boss = Red, Collection Quest = Blue, Rage Bar Boss = Purple speckles), and an icon symbolizing the quest is located in the lower left. + p.small.muted by UncommonCriminal and Rattify + tr + td + h5 Spread the Word Challenge Ending Soon + p Reminder: January 31st is the last day to enter the Spread the Word Challenge for your chance at winning 100 gems! We will stop accepting new applications on February 1st, but it will be some time before the winners are announced because we have to go over all the entries ourselves. Good luck! h5 1/23/2015 - hr tr td h5 The Abominable Stressbeast is DEFEATED! From 4fe4c01f3c2851130594e3d88d94b9ff44b8ab40 Mon Sep 17 00:00:00 2001 From: Sabe Jones Date: Fri, 30 Jan 2015 13:48:44 -0600 Subject: [PATCH 6/7] fix(news): Left right left --- views/shared/new-stuff.jade | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/views/shared/new-stuff.jade b/views/shared/new-stuff.jade index 78a29193d7..f021ef88b2 100644 --- a/views/shared/new-stuff.jade +++ b/views/shared/new-stuff.jade @@ -3,7 +3,7 @@ h5 1/30/2015 - HABITRPG BIRTHDAY BASH AND PARTY ROBES! PLUS, LAST CHANCE FOR STA tr td h5 HabitRPG Birthday Bash - .npc_alex.pull-right + .npc_alex.pull-left p January 31st is HabitRPG's Birthday! All of the NPCs are celebrating, and we've awarded you a bunch of cake for your pets and mounts! tr td @@ -14,7 +14,7 @@ h5 1/30/2015 - HABITRPG BIRTHDAY BASH AND PARTY ROBES! PLUS, LAST CHANCE FOR STA tr td h5 Last Chance for Starry Knight Item Set - .promo_mystery_201501.pull-right + .promo_mystery_201501.pull-left p Reminder: this is the final day to subscribe and receive the Starry Knight Item Set! If you want the Starry Helm or the Starry Armor, now's the time! Thanks so much for your support <3 tr td From 47d14a1f99276d4b9032b8ebff7f5c97b80f6427 Mon Sep 17 00:00:00 2001 From: Sabe Jones Date: Fri, 30 Jan 2015 13:51:48 -0600 Subject: [PATCH 7/7] fix(news): Prettify Bailey more --- views/shared/new-stuff.jade | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/views/shared/new-stuff.jade b/views/shared/new-stuff.jade index f021ef88b2..b79c09166b 100644 --- a/views/shared/new-stuff.jade +++ b/views/shared/new-stuff.jade @@ -2,19 +2,19 @@ h5 1/30/2015 - HABITRPG BIRTHDAY BASH AND PARTY ROBES! PLUS, LAST CHANCE FOR STA hr tr td - h5 HabitRPG Birthday Bash .npc_alex.pull-left + h5 HabitRPG Birthday Bash p January 31st is HabitRPG's Birthday! All of the NPCs are celebrating, and we've awarded you a bunch of cake for your pets and mounts! tr td h5 Party Robes - .broad_armor_special_birthday.pull-right - .broad_armor_special_birthday2015.pull-right + .shop_armor_special_birthday.pull-right + .shop_armor_special_birthday2015.pull-right p Until February 1st only, there are Party Robes available for free in the Rewards store! If this is your first Birthday bash with us, you can find some Absurd Party Robes; if you already got some last year, then you will find the Silly Party Robes. tr td - h5 Last Chance for Starry Knight Item Set .promo_mystery_201501.pull-left + h5 Last Chance for Starry Knight Item Set p Reminder: this is the final day to subscribe and receive the Starry Knight Item Set! If you want the Starry Helm or the Starry Armor, now's the time! Thanks so much for your support <3 tr td