From 5dcba9fe3ad29ab433108a16a282af6dba045adb Mon Sep 17 00:00:00 2001 From: thepaperpilot Date: Sun, 23 Apr 2023 23:47:00 -0500 Subject: [PATCH] Tools glow when empowered --- src/data/projEntry.tsx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/data/projEntry.tsx b/src/data/projEntry.tsx index 21c7db6..e3a3a43 100644 --- a/src/data/projEntry.tsx +++ b/src/data/projEntry.tsx @@ -728,6 +728,14 @@ export const main = createLayer("main", function (this: BaseLayer) { } : null, outlineColor: "var(--bought)", + classes: node => ({ + "affected-node": + empowerer.value != null && + isPowered(empowerer.value) && + (empowerer.value.state as unknown as EmpowererState).tools.includes( + node.state as Passives + ) + }), draggable: true }, dowsing: {