Skip to content

Commit

Permalink
Update Player sword fly speed calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
codergautam committed Jan 14, 2024
1 parent 8b6f4a3 commit 871acc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/game/entities/Player.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,11 @@ class Player extends Entity {
update(dt) {
this.applyBiomeEffects();
this.levels.applyBuffs();
this.sword.update(dt);
this.effects.forEach(effect => effect.update(dt));
this.health.update(dt);
this.applyInputs(dt);
this.sword.flySpeed.value = clamp(this.speed.value / 10, 100, 200);
this.sword.update(dt);

if (this.inputs.isInputDown(Types.Input.Ability) && this.evolutions.evolutionEffect.canActivateAbility) {
this.evolutions.evolutionEffect.activateAbility();
Expand Down

0 comments on commit 871acc1

Please sign in to comment.