From f1551d8973fa7135a0dc833a6b835ff3ef07f1f2 Mon Sep 17 00:00:00 2001 From: evanpelle Date: Tue, 27 May 2025 19:59:52 -0700 Subject: [PATCH] Revert "Population visualization (#842)" (#908) ## Description: This reverts commit 7a78e0c5a229af655299595b026b97518f140b99. Revert it for v23, until we have a proper place to put the visualization ## Please complete the following: - [x] I have added screenshots for all UI updates - [x] I confirm I have thoroughly tested these changes and take full responsibility for any bugs introduced - [x] I understand that submitting code with bugs that could have been caught through manual testing blocks releases and new features for all contributors ## Please put your Discord username so you can be contacted if a bug or regression is found: --- src/client/graphics/layers/SpawnTimer.ts | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src/client/graphics/layers/SpawnTimer.ts b/src/client/graphics/layers/SpawnTimer.ts index b703c04c7..081dbcb0b 100644 --- a/src/client/graphics/layers/SpawnTimer.ts +++ b/src/client/graphics/layers/SpawnTimer.ts @@ -25,21 +25,6 @@ export class SpawnTimer implements Layer { this.colors = []; if (this.game.config().gameConfig().gameMode !== GameMode.Team) { - const player = this.game.myPlayer(); - if (player === null) return; - const max = this.game.config().maxPopulation(player); - const troops = player.troops(); - const workers = player.workers(); - const total = player.totalPopulation(); - const attacking = total - troops - workers; - - this.colors = [ - "rgba(0, 128, 255, 0.7)", - "orange", - "red", - "rgba(0, 0, 0, 0.5)", - ]; - this.ratios = [workers / max, troops / max, attacking / max]; return; }