mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 15:48:04 +01:00
feat(surveys): Survey achievement
Updates the "Helped Habit Grow" achievement to be stackable. Also includes miscellaneous Bailey announcements for 3/10.
This commit is contained in:
@@ -57,5 +57,8 @@
|
|||||||
"whyAds": "Why Ads?",
|
"whyAds": "Why Ads?",
|
||||||
"whyAdsContent1": "Habit is an open source project, and can use all the help it can get - consider this a donation to the contributors. You also get 20 Gems from the purchase, which you can use to buy special items.",
|
"whyAdsContent1": "Habit is an open source project, and can use all the help it can get - consider this a donation to the contributors. You also get 20 Gems from the purchase, which you can use to buy special items.",
|
||||||
"whyAdsContent2": "'Hey, I backed the Kickstarter!' - follow",
|
"whyAdsContent2": "'Hey, I backed the Kickstarter!' - follow",
|
||||||
"whyAdsContent3": "these instructions"
|
"whyAdsContent3": "these instructions",
|
||||||
|
"surveysSingle": "Helped HabitRPG grow by filling out a survey. The latest survey can be found here:",
|
||||||
|
"surveysMultiple": "Helped HabitRPG grow by filling out <%= surveys %> surveys. The latest survey can be found here:",
|
||||||
|
"currentSurvey": "Current Survey"
|
||||||
}
|
}
|
||||||
|
|||||||
5
migrations/20150310_survey_achievements.js
Normal file
5
migrations/20150310_survey_achievements.js
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
db.users.update(
|
||||||
|
{'achievements.helpedHabit':true},
|
||||||
|
{$set:{'achievements.habitSurveys':1}},
|
||||||
|
{multi:1}
|
||||||
|
)
|
||||||
@@ -32,7 +32,8 @@ var UserSchema = new Schema({
|
|||||||
_v: { type: Number, 'default': 0 },
|
_v: { type: Number, 'default': 0 },
|
||||||
achievements: {
|
achievements: {
|
||||||
originalUser: Boolean,
|
originalUser: Boolean,
|
||||||
helpedHabit: Boolean,
|
helpedHabit: Boolean, //TODO: Deprecate this. Superseded by habitSurveys
|
||||||
|
habitSurveys: Number,
|
||||||
ultimateGear: Boolean,
|
ultimateGear: Boolean,
|
||||||
beastMaster: Boolean,
|
beastMaster: Boolean,
|
||||||
beastMasterCount: Number,
|
beastMasterCount: Number,
|
||||||
|
|||||||
@@ -1,26 +1,38 @@
|
|||||||
h5 3/3/2015 - MARCH BACKGROUNDS, ANDROID APP NOTIFICATIONS, AND MARCH MYSTERY BOX
|
h5 3/10/2015 - TESTIMONIALS GUILD AND CHAT EXTENSION
|
||||||
hr
|
hr
|
||||||
tr
|
tr
|
||||||
td
|
td
|
||||||
h5 March Backgrounds Revealed
|
h5 Testimonials Guild
|
||||||
p There are three new avatar backgrounds in the <a href='https://habitrpg.com/#/options/profile/backgrounds' target='_blank'>Background Shop</a>! Now your avatar can dance in the Spring Rain, admire some Stained Glass, or frolic through the Rolling Hills!
|
p We're collecting testimonials from users to display on the front page along with pictures of their avatars. If HabitRPG has been helpful to you and you feel comfortable leaving a short testimonial for us, you can post it <a href='https://habitrpg.com/#/options/groups/guilds/ae985ab0-fcc3-410d-bdb3-ae4defe712bb' target='_blank'>here</a>. Thanks for all your help! <3
|
||||||
p.small.muted by (in order) Sunstroke, Kiwibot, and Uncommon Criminal
|
|
||||||
tr
|
tr
|
||||||
td
|
td
|
||||||
h5 Android App Notifications
|
h5 Chat Extension
|
||||||
p The <a href='https://play.google.com/store/apps/details?id=com.ocdevel.habitrpg' target='_blank'>Android app</a> can now remind you to log in! Simply go to Settings and select the time that you want the reminder.
|
p Horacious Moreau has made a <a href='https://chrome.google.com/webstore/detail/habitrpg-chat-client/hidkdfgonpoaiannijofifhjidbnilbb' target='_blank'>chat extension</a> for HabitRPG! It creates a chat box for Tavern, parties, and Guilds. :)
|
||||||
p.small.muted by Negue
|
br
|
||||||
tr
|
p The Chat Client is also open-source! You can check out the project <a href='https://github.com/Horacious/HabitRPG-Chat-Extension' target='_blank'>here</a>.
|
||||||
td
|
p.small.muted by Horacious Moreau
|
||||||
.inventory_present.pull-right
|
|
||||||
h5 March Mystery Box
|
|
||||||
p Wow! What could it be? All Habiticans who are <a href='https://habitrpg.com/#/options/settings/subscription' target='_blank'>subscribed</a> during the month of March will receive the March Mystery Item Set! It will be revealed on the 25th, so keep your eyes peeled. Thanks for supporting the site <3
|
|
||||||
p.small.muted by Lemoness
|
|
||||||
|
|
||||||
hr
|
hr
|
||||||
a(href='/static/old-news', target='_blank') Read older news
|
a(href='/static/old-news', target='_blank') Read older news
|
||||||
|
|
||||||
mixin oldNews
|
mixin oldNews
|
||||||
|
h5 3/3/2015 - MARCH BACKGROUNDS, ANDROID APP NOTIFICATIONS, AND MARCH MYSTERY BOX
|
||||||
|
tr
|
||||||
|
td
|
||||||
|
h5 March Backgrounds Revealed
|
||||||
|
p There are three new avatar backgrounds in the <a href='https://habitrpg.com/#/options/profile/backgrounds' target='_blank'>Background Shop</a>! Now your avatar can dance in the Spring Rain, admire some Stained Glass, or frolic through the Rolling Hills!
|
||||||
|
p.small.muted by (in order) Sunstroke, Kiwibot, and Uncommon Criminal
|
||||||
|
tr
|
||||||
|
td
|
||||||
|
h5 Android App Notifications
|
||||||
|
p The <a href='https://play.google.com/store/apps/details?id=com.ocdevel.habitrpg' target='_blank'>Android app</a> can now remind you to log in! Simply go to Settings and select the time that you want the reminder.
|
||||||
|
p.small.muted by Negue
|
||||||
|
tr
|
||||||
|
td
|
||||||
|
.inventory_present.pull-right
|
||||||
|
h5 March Mystery Box
|
||||||
|
p Wow! What could it be? All Habiticans who are <a href='https://habitrpg.com/#/options/settings/subscription' target='_blank'>subscribed</a> during the month of March will receive the March Mystery Item Set! It will be revealed on the 25th, so keep your eyes peeled. Thanks for supporting the site <3
|
||||||
|
p.small.muted by Lemoness
|
||||||
h5 2/24/2015 - FEBRUARY SUBSCRIBER ITEM AND ADD MULTIPLE TASKS!
|
h5 2/24/2015 - FEBRUARY SUBSCRIBER ITEM AND ADD MULTIPLE TASKS!
|
||||||
tr
|
tr
|
||||||
td
|
td
|
||||||
|
|||||||
@@ -120,13 +120,18 @@ div(ng-if='profile.achievements.rebirths')
|
|||||||
| {{profile.achievements.rebirthLevel}}.
|
| {{profile.achievements.rebirthLevel}}.
|
||||||
hr
|
hr
|
||||||
|
|
||||||
div(ng-if='::profile.achievements.helpedHabit')
|
div(ng-if='::profile.achievements.habitSurveys || user._id == profile._id')
|
||||||
.achievement.achievement-tree
|
.achievement.achievement-tree(ng-show='profile.achievements.habitSurveys')
|
||||||
h5=env.t('helped')
|
div(ng-class='{muted: !profile.achievements.habitSurveys}')
|
||||||
small
|
h5=env.t('helped')
|
||||||
=env.t('helpedText1')
|
small(ng-if='profile.achievements.habitSurveys > 1')
|
||||||
|
|
=env.t('surveysMultiple', {surveys: "{{profile.achievements.habitSurveys"})
|
||||||
+aLink('http://community.habitrpg.com/node/290', env.t('helpedText2'))
|
|
|
||||||
|
+aLink('https://www.surveymonkey.com/s/62RXRF3', env.t('currentSurvey'))
|
||||||
|
small(ng-if='!(profile.achievements.habitSurveys > 1)')
|
||||||
|
=env.t('surveysSingle')
|
||||||
|
|
|
||||||
|
+aLink('https://www.surveymonkey.com/s/62RXRF3', env.t('currentSurvey'))
|
||||||
hr
|
hr
|
||||||
|
|
||||||
div(ng-if=':: profile.achievements.veteran')
|
div(ng-if=':: profile.achievements.veteran')
|
||||||
|
|||||||
Reference in New Issue
Block a user