Revert "fix(quests): prevent very high damage for all quests" (@lemoness

@deilann - now it's just world boss, capped 900)

This reverts commit 89369e21a3.
This commit is contained in:
Tyler Renelle 2014-07-12 16:12:12 -06:00
parent 89369e21a3
commit 7dfce54454
2 changed files with 4 additions and 7 deletions

View file

@ -237,6 +237,10 @@ process.nextTick(function(){
GroupSchema.statics.tavernBoss = function(user,progress) {
if (!progress) return;
// hack: prevent crazy damage to world boss
progress.up = Math.min(900, Math.abs(progress.up||0));
progress.down = -Math.min(900, Math.abs(progress.down||0));
async.waterfall([
function(cb){
mongoose.model('Group').findOne(tavernQ,cb);

View file

@ -403,13 +403,6 @@ UserSchema.pre('save', function(next) {
this.achievements.beastMaster = petCount >= 90;
var progress = this.party && this.party.quest && this.party.quest.progress;
if (progress) {
// hack: prevent crazy damage to bosses (see https://github.com/HabitRPG/habitrpg/issues/3712)
progress.up = Math.min(300, Math.abs(progress.up||0));
progress.down = -Math.min(300, Math.abs(progress.down||0));
}
//our own version incrementer
this._v++;
next();