chore: simple

This commit is contained in:
cha0s 2019-10-10 01:15:38 -05:00
parent 0f3ec08491
commit f6622d6919

View File

@ -68,11 +68,9 @@ export class Alive extends decorate(Trait) {
this._context = new Context({
entity: this.entity,
});
const actionsJSON = this.params.deathActions;
this._deathActions = behaviorItemFromJSON(actionsJSON);
this._deathActions = behaviorItemFromJSON(this.params.deathActions);
this._deathSound = this.params.deathSound;
const conditionJSON = this.params.deathCondition;
this._deathCondition = behaviorItemFromJSON(conditionJSON);
this._deathCondition = behaviorItemFromJSON(this.params.deathCondition);
this._dyingTickingPromise = false;
}