feat: dont show armor numbers after wave 5

This commit is contained in:
2026-06-25 07:27:38 +05:00
parent 6c16d97670
commit 89d39452ed
+2
View File
@@ -114,6 +114,7 @@ class Enemy {
barH,
);
if (wave <= 5) {
ctx.font = `${S.armorBarFont}px "Courier New", monospace`;
ctx.fillStyle = flash ? CONFIG.colors.white : CONFIG.colors.heavy;
ctx.textAlign = "center";
@@ -122,6 +123,7 @@ class Enemy {
this.x,
this.y - boxH / 2 - S.enemyArmorLabelOffset,
);
}
} else {
ctx.strokeRect(this.x - boxW / 2, this.y - boxH / 2, boxW, boxH);
}