From 99ebcc8ef4e9640afc7277a013004ccc54e71fe6 Mon Sep 17 00:00:00 2001 From: Samuel Safahi <60489622+samisbakedham@users.noreply.github.com> Date: Mon, 28 Apr 2025 00:04:41 -0700 Subject: [PATCH] Bug fix --- src/client/graphics/layers/EventsDisplay.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/graphics/layers/EventsDisplay.ts b/src/client/graphics/layers/EventsDisplay.ts index ede2f7422..f0de87293 100644 --- a/src/client/graphics/layers/EventsDisplay.ts +++ b/src/client/graphics/layers/EventsDisplay.ts @@ -271,7 +271,7 @@ export class EventsDisplay extends LitElement implements Layer { const malusPercent = Math.round( (1 - this.game.config().traitorDefenseDebuff()) * 100, ); - const traitorDurationRaw = this.game.config().traitorDuration / 10; + const traitorDurationRaw = Number(this.game.config().traitorDuration) / 10; const traitorDurationSeconds = Math.floor(traitorDurationRaw); const durationText = traitorDurationSeconds === 1