Skip to content

Commit

Permalink
Update abilities for Berserker and Tank evolutions
Browse files Browse the repository at this point in the history
  • Loading branch information
codergautam committed Jan 14, 2024
1 parent 93de9b4 commit eae4b46
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions server/src/game/evolutions/Berserker.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ module.exports = class Berserker extends Evolution {
static abilityCooldown = 60;

applyAbilityEffects() {
this.player.sword.damage.multiplier *= 1.6;
this.player.sword.damage.multiplier *= 1.2;
this.player.sword.knockback.multiplier['ability'] = 1.8;
this.player.speed.multiplier *= 1.8;
this.player.sword.swingDuration.multiplier['ability'] = 0.5;
this.player.speed.multiplier *= 1.5;
this.player.sword.swingDuration.multiplier['ability'] = 0.6;
}

update(dt) {
Expand Down
8 changes: 4 additions & 4 deletions server/src/game/evolutions/Tank.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ module.exports = class Tank extends Evolution {
static abilityCooldown = 90;

applyAbilityEffects() {
this.player.sword.damage.multiplier *= 2;
this.player.sword.knockback.multiplier['ability'] = 2;
this.player.knockbackResistance.multiplier *= 2;
this.player.sword.damage.multiplier *= 2.5;
this.player.sword.knockback.multiplier['ability'] = 1.5;
this.player.knockbackResistance.multiplier *= 1.5;
this.player.shape.setScale(1.75);
this.player.health.regen.multiplier *= 5;
this.player.health.regen.multiplier *= 8;

this.player.health.regenWait.multiplier *= 0;
this.player.sword.swingDuration.multiplier['ability'] = 0.5;
Expand Down

0 comments on commit eae4b46

Please sign in to comment.