";
+ }
});
$('.main-herobox').popover('destroy');
var tour = new Tour({
@@ -104,7 +108,11 @@ angular.module('guideServices', []).
if (!placement) placement = 'bottom';
$(selector).popover('destroy');
var button = "";
- html = "
";
+ }
});
$('.allocate-stats').popover('destroy');
var tour = new Tour({
diff --git a/src/models/group.js b/src/models/group.js
index 2997fd4cfe..5b5243b71f 100644
--- a/src/models/group.js
+++ b/src/models/group.js
@@ -256,7 +256,7 @@ GroupSchema.statics.tavernBoss = function(user,progress) {
var quest = shared.content.quests[tavern.quest.key];
if (tavern.quest.progress.hp <= 0) {
- tavern.sendChat(quest.completion('en'));
+ tavern.sendChat(quest.completionChat('en'));
tavern.finishQuest(quest, function(){});
tavern.save(cb);
module.exports.tavern = undefined;
@@ -269,13 +269,15 @@ GroupSchema.statics.tavernBoss = function(user,progress) {
if (tavern.quest.progress.rage >= quest.boss.rage.value) {
if (!tavern.quest.extra.worldDmg) tavern.quest.extra.worldDmg = {};
var wd = tavern.quest.extra.worldDmg;
- var scene = wd.tavern ? wd.stables ? wd.market ? false : 'market' : 'stables' : 'tavern';
+ // var scene = wd.tavern ? wd.stables ? wd.market ? false : 'market' : 'stables' : 'tavern'; // Dilatory attacks tavern, stables, market
+ var scene = wd.stables ? wd.bailey ? wd.guide ? false : 'guide' : 'bailey' : 'stables'; // Stressbeast attacks stables, Bailey, Justin
if (!scene) {
tavern.sendChat('`'+quest.boss.name('en')+' tries to unleash '+quest.boss.rage.title('en')+', but is too tired.`');
tavern.quest.progress.rage = 0 //quest.boss.rage.value;
} else {
tavern.sendChat(quest.boss.rage[scene]('en'));
tavern.quest.extra.worldDmg[scene] = true;
+ tavern.quest.extra.worldDmg.recent = scene;
tavern.markModified('quest.extra.worldDmg');
tavern.quest.progress.rage = 0;
}
diff --git a/views/options/social/boss.jade b/views/options/social/boss.jade
index 4644f28e5e..46746c3799 100644
--- a/views/options/social/boss.jade
+++ b/views/options/social/boss.jade
@@ -36,7 +36,10 @@ mixin boss(tavern, mobile)
div(ng-if='group.quest.active==true')
div(ng-if='::Content.quests[group.quest.key].boss',ng-init='boss=Content.quests[group.quest.key].boss;progress=group.quest.progress')
- div(class="quest_{{::group.quest.key}}")
+ if tavern
+ div(class="quest_{{group.quest.key}} quest_{{group.quest.key}}_#{env.worldDmg.recent}")
+ else
+ div(class="quest_{{::group.quest.key}}")
//-
.progress
.bar(style='width: {{Shared.percent(group.quest.hp, Content.quests[group.quest.key].hp)}}%;')
@@ -85,8 +88,8 @@ mixin boss(tavern, mobile)
// =env.t('questOwnerNotInRunningQuest')
// span(ng-if=':: ! group.quest.leader || ! isMemberOfGroup(group.quest.leader,group)')
// =env.t('questOwnerNotInRunningQuestParty')
-
- quest-rewards(key='{{::group.quest.key}}')
+ unless tavern
+ quest-rewards(key='{{::group.quest.key}}')
div(ng-if='::Content.quests[group.quest.key].boss')
.npc_ian.pull-left
diff --git a/views/shared/modals/achievements.jade b/views/shared/modals/achievements.jade
index 1315823510..86e2b2a8b3 100644
--- a/views/shared/modals/achievements.jade
+++ b/views/shared/modals/achievements.jade
@@ -35,7 +35,7 @@ script(id='modals/achievements/contributor.html', type='text/ng-template')
.modal-header
h4=env.t('modalContribAchievement')
.modal-body
- .npc_justin.float-left
+ div(class="#{env.worldDmg.guide ? 'npc_justin_broken.float-left' : 'npc_justin.float-left'}")
p
!=env.t('contribModal', {name: "{{user.profile.name}}", level: "{{user.contributor.level}}"}) + ' '
a(href='http://habitrpg.wikia.com/wiki/Contributor_Rewards' target='_blank')=env.t('contribLink')
diff --git a/views/shared/modals/new-stuff.jade b/views/shared/modals/new-stuff.jade
index 98bfd6d979..e27ecc0e7f 100644
--- a/views/shared/modals/new-stuff.jade
+++ b/views/shared/modals/new-stuff.jade
@@ -3,7 +3,7 @@ script(type='text/ng-template', id='modals/newStuff.html')
| #{env.t('newStuff')} by
a(target='_blank', href='https://twitter.com/Mihakuu') Bailey
.modal-body.new-stuff-modal.modal-fixed-height
- .npc_bailey
+ div(class="#{env.worldDmg.bailey ? 'npc_bailey_broken' : 'npc_bailey'}")
br
br
include ../new-stuff
diff --git a/views/shared/new-stuff.jade b/views/shared/new-stuff.jade
index ce42a9f18c..4ab302be4d 100644
--- a/views/shared/new-stuff.jade
+++ b/views/shared/new-stuff.jade
@@ -1,24 +1,41 @@
-h5 JANUARY BACKGROUNDS, TESTING CRON BUG FIX, AND DATE FORMAT ADJUSTMENT!
+h5 WORLD BOSS BATTLE BEGINS!
tr
td
- h5 January Backgrounds
- p There are three new avatar backgrounds in the Background Shop! Now your avatar can summit a Frigid Peak, shiver in an Ice Cave, or wander through the Snowy Pines!
- p.small.muted by Kiwibot, Sunstroke, and Rattify
+ h5 World Boss: The Abominable Stressbeast!
+ .quest_stressbeast.pull-right
+ p A new World Boss has appeared in the Tavern! All of the completed Dailies and To-Dos of Habiticans damage the World Boss. Incomplete Dailies fill the Stress Strike Bar. When the Stress Strike bar is full, the World Boss will attack an NPC.
+ p A World Boss will never damage individual players or accounts in any way. Only active accounts who are not resting in the inn will have their incomplete Dailies tallied. Read on for the details!
tr
td
- h5 Testing Fix for Cron Bug
- p Today we will be testing a possible fix for a bug that sometimes causes Dailies to not reset correctly on the following day. It's a big change, so we will be keeping a close watch on the site to make sure that it doesn't break anything. If you experience any problems with day start or Dailies reseting in the next few days, please let us know immediately on GitHub. Thanks!
- tr
- td
- h5 Date Format Adjustment
- p There's a new option under Settings that lets you adjust the date format. Now you can list dates as MM/DD/YYYY, DD/MM/YYYY, or YYYY/MM/DD.
- p.small.muted by Verabird
+ h5 Winter Plot-Line: The Abominable Stressbeast Attacks!
+ p The first thing we hear are the footsteps, slower and more thundering than the stampede. One by one, Habiticans look outside their doors, and words fail us.
+ p We've all seen Stressbeasts before, of course - tiny vicious creatures that attack during difficult times. But this? This towers taller than the buildings, with paws that could crush a dragon with ease. Frost swings from its stinking fur, and as it roars, the icy blast rips the roofs off our houses. A monster of this magnitude has never been mentioned outside of distant legend.
+ p "Beware, Habiticans!" SabreCat cries. "Barricade yourselves indoors - this is the Abominable Stressbeast itself!"
+ p "That thing must be made of centuries of stress!" Kiwibot says, locking the Tavern door tightly and shuttering the windows.
+ p "The Stoïkalm Steppes," Lemoness says, face grim. "All this time, we thought they were placid and untroubled, but they must have been secretly hiding their stress somewhere. Over generations, it grew into this, and now it's broken free and attacked them - and us!"
+ p There's only one way to drive away a Stressbeast, Abominable or otherwise, and that's to attack it with completed Dailies and To-Dos! Let's all band together and fight off this fearsome foe - but be sure not to slack on your tasks, or our undone Dailies may enrage it so much that it lashes out...
+ p.small.muted by Lemoness, Kiwibot, and SabreCat
hr
a(href='/static/old-news', target='_blank') Read older news
mixin oldNews
- h5 1/3/2015 - January Mystery Items, Spread the Word Challenge, Winter Plot-Line Continued
+ h5 1/5/2015
+ tr
+ td
+ h5 January Backgrounds
+ p There are three new avatar backgrounds in the Background Shop! Now your avatar can summit a Frigid Peak, shiver in an Ice Cave, or wander through the Snowy Pines!
+ p.small.muted by Kiwibot, Sunstroke, and Rattify
+ tr
+ td
+ h5 Testing Fix for Cron Bug
+ p Today we will be testing a possible fix for a bug that sometimes causes Dailies to not reset correctly on the following day. It's a big change, so we will be keeping a close watch on the site to make sure that it doesn't break anything. If you experience any problems with day start or Dailies reseting in the next few days, please let us know immediately on GitHub. Thanks!
+ tr
+ td
+ h5 Date Format Adjustment
+ p There's a new option under Settings that lets you adjust the date format. Now you can list dates as MM/DD/YYYY, DD/MM/YYYY, or YYYY/MM/DD.
+ p.small.muted by Verabird
+ h5 1/3/2015
tr
td
h5 January Mystery Item Set
@@ -36,7 +53,7 @@ mixin oldNews
p A thundering herd of mammoths charges past, sabertooths roar, and dinosaurs both feathery and scaly slither by at top speed. Habiticans stare open-mouthed, but before anyone can react, the stampede has swept through Habit City and is gone into the distance, leaving only pawprints in the snow, the howling wind, and some trampled New Year's cards.
p Habiticans are advised to keep calm and not give in to stress during this confusing and difficult time. We've sent SabreCat after the frightened animals from the Stoïkalm Steppes, and he is working to calm them down so that we can bring them back to the safety of the Stables. We hope to have an explanation for this strangeness soon. In the meantime, keep all of your own pets and mounts indoors.
p.small.muted Read the previous installments of the Winter Plot-Line here!
- h5 12/31/2014 - New Year's Eve Celebration
+ h5 12/31/2014
tr
td
h5 Party Hats
@@ -55,7 +72,7 @@ mixin oldNews
.inventory_special_snowball.pull-right
p The Seasonal Shop is also stocking Snowballs for gold! Throw them at your friends to have an exciting effect. Anyone hit with a snowball earns the Annoying Friends badge. The results of being hit with a Snowball will last until the end of your day, but you can also reverse them early by buying Salt from the Rewards column. Snowballs are available until January 31st.
p.small.muted by Shaner, Lemoness, and SabreCat
- h5 12/25/2014 - December Subscriber Item Set and Seasonal Shop! Plus, Flagging Posts and Winter Plot-Line Continues
+ h5 12/25/2014
tr
td
h5 December Subscriber Item Set
diff --git a/views/shared/profiles/achievements.jade b/views/shared/profiles/achievements.jade
index b1bd00c656..4ff1777d49 100644
--- a/views/shared/profiles/achievements.jade
+++ b/views/shared/profiles/achievements.jade
@@ -171,7 +171,6 @@ div(ng-if='::profile.achievements.quests.dilatory')
=env.t('achievementDilatoryText')
hr
-//- FIXME add these strings to locales
div(ng-if='::profile.achievements.costumeContest')
.achievement.achievement-costumeContest
h5=env.t('costumeContest')
@@ -185,3 +184,10 @@ div(ng-if='::profile.achievements.nye')
small
=env.t('auldAcquaintanceText', {cards: "{{::profile.achievements.nye}}"})
hr
+
+div(ng-if='::profile.achievements.quests.stressbeast')
+ .achievement.achievement-stoikalm
+ h5=env.t('achievementStressbeast')
+ small
+ =env.t('achievementStressbeastText')
+ hr
\ No newline at end of file