From a2fff73cc71fce9aae11793434f8bfe72d9f8d2e Mon Sep 17 00:00:00 2001 From: cha0s Date: Fri, 1 Apr 2022 10:34:27 -0500 Subject: [PATCH] refactor: set position up front --- packages/combat/src/traits/vulnerable.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/combat/src/traits/vulnerable.js b/packages/combat/src/traits/vulnerable.js index 7ad5a18..230606b 100644 --- a/packages/combat/src/traits/vulnerable.js +++ b/packages/combat/src/traits/vulnerable.js @@ -261,6 +261,12 @@ export default (flecks) => class Vulnerable extends Trait { fontSize, }, }, + Positioned: { + state: { + x: this.entity.x, + y: this.entity.y, + }, + }, Textual: { state: { text: amount,