From 89d39452ed0f968805436388a6cfd4323a9c070c Mon Sep 17 00:00:00 2001 From: Ku6epXBOCTuK Date: Thu, 25 Jun 2026 07:27:38 +0500 Subject: [PATCH] feat: dont show armor numbers after wave 5 --- js/enemy.js | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/js/enemy.js b/js/enemy.js index fee5b95..a4a95a6 100644 --- a/js/enemy.js +++ b/js/enemy.js @@ -114,14 +114,16 @@ class Enemy { barH, ); - ctx.font = `${S.armorBarFont}px "Courier New", monospace`; - ctx.fillStyle = flash ? CONFIG.colors.white : CONFIG.colors.heavy; - ctx.textAlign = "center"; - ctx.fillText( - `${CONFIG.texts.armorLabel} ${remainingLayers}/${totalLayers}`, - this.x, - this.y - boxH / 2 - S.enemyArmorLabelOffset, - ); + if (wave <= 5) { + ctx.font = `${S.armorBarFont}px "Courier New", monospace`; + ctx.fillStyle = flash ? CONFIG.colors.white : CONFIG.colors.heavy; + ctx.textAlign = "center"; + ctx.fillText( + `${CONFIG.texts.armorLabel} ${remainingLayers}/${totalLayers}`, + this.x, + this.y - boxH / 2 - S.enemyArmorLabelOffset, + ); + } } else { ctx.strokeRect(this.x - boxW / 2, this.y - boxH / 2, boxW, boxH); }