From f9ac15f817ae0f12771b8ce012418ee08e3f2cbd Mon Sep 17 00:00:00 2001 From: cha0s Date: Wed, 16 Oct 2019 02:20:36 -0500 Subject: [PATCH] chore: tidy --- common/combat/vulnerable.trait.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/common/combat/vulnerable.trait.js b/common/combat/vulnerable.trait.js index 8cf6e95..68abd54 100644 --- a/common/combat/vulnerable.trait.js +++ b/common/combat/vulnerable.trait.js @@ -50,8 +50,9 @@ export class Vulnerable extends Trait { this._isHydrating = false; this._isInvulnerable = false; this.locks = new Map(); - const tookDamageActionsJSON = this.params.tookDamageActions; - this._tookDamageActions = behaviorItemFromJSON(tookDamageActionsJSON); + this._tookDamageActions = behaviorItemFromJSON( + this.params.tookDamageActions + ); } destroy() { @@ -72,9 +73,7 @@ export class Vulnerable extends Trait { damage, entity: this.entity, }); - const tickingPromise = this._tookDamageActions.tickingPromise( - context - ); + const tickingPromise = this._tookDamageActions.tickingPromise(context); tickingPromise.then(() => { context.destroy(); });