chore: tidy

This commit is contained in:
cha0s 2021-04-28 22:24:48 -05:00
parent 16dffe6855
commit 5059525ca3

View File

@ -167,11 +167,9 @@ export default () => class Mobile extends decorate(Trait) {
if (!this.entity.isMobile) {
return;
}
this.entity.applyMovement(Vector.scale(
Vector.saturate(vector),
this.speed,
));
this.entity.emit('movementRequest', this.#appliedMovement);
const movement = Vector.scale(Vector.saturate(vector), this.speed);
this.entity.applyMovement(movement);
this.entity.emit('movementRequest', movement);
},
};