mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-21 15:10:43 +00:00
Bug fix
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user