mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-21 14:00:54 +00:00
## 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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user