Browse Source

balance[#1467]: Mobs below level 4 can no longer have lifeOnHit

tags/v0.8.1^2
Shaun 3 years ago
parent
commit
ab9a6daef1
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      src/server/world/mobBuilder.js

+ 5
- 0
src/server/world/mobBuilder.js View File

@@ -191,6 +191,11 @@ module.exports = {
}*/
});

//Hack to disallow low level mobs from having any lifeOnHit
// since that makes it very difficult (and confusing) for low level players
if (level <= 3)
mob.stats.values.lifeOnHit = 0;

['hp', 'hpMax', 'mana', 'manaMax', 'level'].forEach(s => mob.syncer.setObject(false, 'stats', 'values', s, statValues[s]));
}
};

Loading…
Cancel
Save