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) { if (!this.entity.isMobile) {
return; return;
} }
this.entity.applyMovement(Vector.scale( const movement = Vector.scale(Vector.saturate(vector), this.speed);
Vector.saturate(vector), this.entity.applyMovement(movement);
this.speed, this.entity.emit('movementRequest', movement);
));
this.entity.emit('movementRequest', this.#appliedMovement);
}, },
}; };