Revert "Population visualization (#842)" (#908)

## Description:
This reverts commit 7a78e0c5a2.

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:

<DISCORD USERNAME>
This commit is contained in:
evanpelle
2025-05-27 19:59:52 -07:00
committed by GitHub
parent 0a37fa5a21
commit f1551d8973
-15
View File
@@ -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;
}